]> git.proxmox.com Git - mirror_lxc.git/commit - config/templates/common.conf.in
Use consistent /proc, /sys and /sys/fs/cgroup (v2)
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 28 Jan 2015 18:41:26 +0000 (19:41 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 29 Jan 2015 10:44:02 +0000 (11:44 +0100)
commitf24a52d5f588ff4e4575046903fb9498c376d833
treec76a72cd782d1056a2f547201ba20692872e29b0
parente088e9267c8fdd9078e65bcb156b3b9c8869bb6c
Use consistent /proc, /sys and /sys/fs/cgroup (v2)

 - Implements mixed mode for /sys where it's mounted read-only but with
   /sys/devices/virtual/net/ writable.

 - Sets lxc.mount.auto to "cgroup:mixed proc:mixed sys:mixed" for all
   templates.

 - Drop any template-specific mount for /proc, /sys or /sys/fs/cgroup.

 - Get rid of the fstab file by default, using lxc.mount.entry instead.

 - Set sys:mixed as the default for "sys". sys:mixed is slightly more
   permissive than sys:ro so this shouldn't be a problem.

The read-only bind mount of /sys on top of itself is there so that
mountall and other init systems don't attempt to remount /sys
read-write.

v2 changes:
 - Fix the mount list, don't specify a source for the remount.
 - Update the documentation.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
25 files changed:
config/templates/archlinux.common.conf.in
config/templates/centos.common.conf.in
config/templates/common.conf.in
config/templates/debian.common.conf.in
config/templates/gentoo.common.conf.in
config/templates/gentoo.moresecure.conf.in
config/templates/openwrt.common.conf.in
config/templates/oracle.common.conf.in
config/templates/plamo.common.conf.in
config/templates/ubuntu.common.conf.in
doc/lxc.container.conf.sgml.in
src/lxc/conf.c
src/lxc/conf.h
src/lxc/confile.c
templates/lxc-alpine.in
templates/lxc-altlinux.in
templates/lxc-busybox.in
templates/lxc-cirros.in
templates/lxc-debian.in
templates/lxc-openmandriva.in
templates/lxc-opensuse.in
templates/lxc-plamo.in
templates/lxc-sshd.in
templates/lxc-ubuntu-cloud.in
templates/lxc-ubuntu.in