Merge pull request #11124 from pawalt:pawalt/pidmax

PiperOrigin-RevId: 693788418
This commit is contained in:
gVisor bot
2024-11-06 10:59:45 -08:00
+1
View File
@@ -52,6 +52,7 @@ func (fs *filesystem) newSysDir(ctx context.Context, root *auth.Credentials, k *
"hostname": fs.newInode(ctx, root, 0444, &hostnameData{}),
"overflowgid": fs.newInode(ctx, root, 0444, newStaticFile(fmt.Sprintf("%d\n", auth.OverflowGID))),
"overflowuid": fs.newInode(ctx, root, 0444, newStaticFile(fmt.Sprintf("%d\n", auth.OverflowUID))),
"pid_max": fs.newInode(ctx, root, 0644, newStaticFile(fmt.Sprintf("%d\n", kernel.TasksLimit))),
"random": fs.newStaticDir(ctx, root, map[string]kernfs.Inode{
"boot_id": fs.newInode(ctx, root, 0444, newStaticFile(randUUID())),
}),