mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 17:30:53 +00:00
![]() Ubuntu containers have had trouble with automatic cgroup mounting that was not read-write (i.e. lxc.mount.auto = cgroup{,-full}:{ro,mixed}) in containers without CAP_SYS_ADMIN. Ubuntu's mountall program reads /lib/init/fstab, which contains an entry for /sys/fs/cgroup. Since there is no ro option specified for that filesystem, mountall will try to remount it readwrite if it is already mounted. Without CAP_SYS_ADMIN, that fails and mountall will interrupt boot and wait for user input on whether to proceed anyway or to manually fix it, effectively hanging container bootup. This patch makes sure that /sys/fs/cgroup is always a readwrite tmpfs, but that the actual cgroup hierarchy paths (/sys/fs/cgroup/$subsystem) are readonly if :ro or :mixed is used. This still has the desired effect within the container (no cgroup escalation possible and programs get errors if they try to do so anyway), while keeping Ubuntu containers happy. Signed-off-by: Christian Seiler <christian@iwakd.de> Cc: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
||
---|---|---|
.. | ||
api | ||
examples | ||
ja | ||
legacy | ||
rootfs | ||
common_options.sgml.in | ||
FAQ.txt | ||
lxc-attach.sgml.in | ||
lxc-autostart.sgml.in | ||
lxc-cgroup.sgml.in | ||
lxc-checkconfig.sgml.in | ||
lxc-clone.sgml.in | ||
lxc-config.sgml.in | ||
lxc-console.sgml.in | ||
lxc-create.sgml.in | ||
lxc-destroy.sgml.in | ||
lxc-device.sgml.in | ||
lxc-execute.sgml.in | ||
lxc-freeze.sgml.in | ||
lxc-info.sgml.in | ||
lxc-ls.sgml.in | ||
lxc-monitor.sgml.in | ||
lxc-snapshot.sgml.in | ||
lxc-start-ephemeral.sgml.in | ||
lxc-start.sgml.in | ||
lxc-stop.sgml.in | ||
lxc-top.sgml.in | ||
lxc-unfreeze.sgml.in | ||
lxc-unshare.sgml.in | ||
lxc-user-nic.sgml.in | ||
lxc-usernet.sgml.in | ||
lxc-usernsexec.sgml.in | ||
lxc-wait.sgml.in | ||
lxc.conf.sgml.in | ||
lxc.container.conf | ||
lxc.container.conf.sgml.in | ||
lxc.sgml.in | ||
lxc.system.conf | ||
lxc.system.conf.sgml.in | ||
Makefile.am | ||
see_also.sgml.in |