diff options
author | Rahat Mahmood <rahat@google.com> | 2021-09-23 15:50:08 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-09-23 15:54:02 -0700 |
commit | 2b776633303f696a552d41ead53b33e594c812d1 (patch) | |
tree | 713eff4f409c08387fdf7655964af550bd37bc41 /pkg/segment | |
parent | 93ac1557751a0c17a85f49d715b96833acf39dc6 (diff) |
Create the cgroupfs mount point in sysfs.
Create the /sys/fs/cgroup directory when cgroups are available. This
creates the empty directory to serve as the mountpoint, actually
mounting cgroups is left to the launcher/userspace. This is consistent
with Linux behaviour.
Without this mountpoint, getdents(2) on /sys/fs indicates an empty
directory even if the launcher mounts cgroupfs at /sys/fs/cgroup. The
launcher can't create the mountpoint directory since sysfs doesn't
support mkdir.
PiperOrigin-RevId: 398596698
Diffstat (limited to 'pkg/segment')
0 files changed, 0 insertions, 0 deletions