[lxc-devel] [lxc/lxc] 5cfc06: cgfs: don't mount /sys/fs/cgroup readonly

GitHub noreply at github.com
Fri May 2 17:04:42 UTC 2014


  Branch: refs/heads/stable-1.0
  Home:   https://github.com/lxc/lxc
  Commit: 5cfc06fae750e7222f0839a48b152c4f9da1633c
      https://github.com/lxc/lxc/commit/5cfc06fae750e7222f0839a48b152c4f9da1633c
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-05-02 (Fri, 02 May 2014)

  Changed paths:
    M src/lxc/cgfs.c

  Log Message:
  -----------
  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 at ubuntu.com>
Cc: Christian Seiler <christian at iwakd.de>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>




More information about the lxc-devel mailing list