]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgfs: don't mount /sys/fs/cgroup readonly
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 2 May 2014 16:35:10 +0000 (11:35 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 2 May 2014 17:04:21 +0000 (13:04 -0400)
commit8d783edcae3723a0106d75e1ff31b016e8b1d02c
tree920fec36ba2ef3ca544456368782ff13a9f1eee7
parentb9abc183b177212db8b46a1419ce7bc62ad838ce
cgfs: don't mount /sys/fs/cgroup readonly

/sys/fs/cgroup is just a size-limited tmpfs, and making it ro does
nothing to affect our ability alter mount settings of its subdirs.
OTOH making it ro can upset mountall in the container which tries
to remount it rw, which may be refused.

So just don't do it.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Cc: Christian Seiler <christian@iwakd.de>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgfs.c