]> git.proxmox.com Git - mirror_lxc.git/commit
fix cgfs failure for unpriv users
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 26 Feb 2016 20:03:09 +0000 (20:03 +0000)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 26 Feb 2016 20:16:39 +0000 (12:16 -0800)
commitea439aaca19806baab514e67da20ac527de2f96c
treec213e6cc708ce1bc7a43705e92f492ca87dce169
parent127ef998ed3d84b64e075213f5f40a4d472a2c95
fix cgfs failure for unpriv users

Cgmanager was taught awhile ago that only some cgroup controllers are
crucial.  Teach cgfs the same thing.

This patch needs improvement, but will fix failure of lxc without cgmanager
for unprivileged users for now.  In particular, needed improvements include:

1. the check for crucial subsystems needs to include lxc.use
2. we should keep a list of the actually used subsystems so we don't keep
trying to chmod and enter after create has found we couldn't use a particular
subsystem

This fixes unprivileged lxc use.  It does not appear to suffice to fix
nested unprivilegd lxd usage.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgfs.c
src/lxc/cgmanager.c
src/lxc/cgroup.c
src/lxc/cgroup.h