[lxc-devel] [lxc/lxc] d3f99e: cgfs: make sure we use valid cgroup mountpoints
GitHub
noreply at github.com
Thu Feb 25 19:39:29 UTC 2016
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: d3f99e96fb70732bdb11d247f457cb0771665b1b
https://github.com/lxc/lxc/commit/d3f99e96fb70732bdb11d247f457cb0771665b1b
Author: Serge Hallyn <serge.hallyn at ubuntu.com>
Date: 2016-02-25 (Thu, 25 Feb 2016)
Changed paths:
M src/lxc/cgfs.c
Log Message:
-----------
cgfs: make sure we use valid cgroup mountpoints
If lxcfs starts before cgroup-lite, then the first cgroup mountpoints in
/proc/self/mountinfo are /run/lxcfs/*. Unprivileged users cannot access
these. So privileged containers are ok, and unprivileged containers are ok
since they won't cache those to begin with. But unprivileged root-owned
containers cache /run/lxcfs/* and then try to use them.
So when doing cgroup automounting check whether the mountpoints we have
stored are accessible, and if not look for a new one to use.
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Commit: 0eb37f98660d2b7bf26dd87162ea3749cb9f8d1c
https://github.com/lxc/lxc/commit/0eb37f98660d2b7bf26dd87162ea3749cb9f8d1c
Author: Stéphane Graber <stgraber at stgraber.org>
Date: 2016-02-25 (Thu, 25 Feb 2016)
Changed paths:
M src/lxc/cgfs.c
Log Message:
-----------
Merge pull request #850 from hallyn/2016-02-25/cgfs.lxcfs
cgfs: make sure we use valid cgroup mountpoints
Compare: https://github.com/lxc/lxc/compare/fa79f0a4e3fc...0eb37f98660d
More information about the lxc-devel
mailing list