]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/cgroups/cgfs.c
cgroups: do not fail if setting devices cgroup fails due to EPERM
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 19 Feb 2016 22:12:47 +0000 (14:12 -0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 19 Feb 2016 22:12:47 +0000 (14:12 -0800)
commit4f875f707ac27d5b398da8093095d2a25518514d
tree8cd3a0cb4323bd98082f2bdf66bf963125f7c960
parentef95dc011ed1b12de324524831f321bc29526b2b
cgroups: do not fail if setting devices cgroup fails due to EPERM

If we're trying to allow a device which was denied to our parent
container, just continue.

Cgmanager does not help us to distinguish between eperm and other
errors, so just always continue.

We may want to consider actually computing the range of devices
to which the container monitor has access, but OTOH that introduces
a whole new set of complexity to compute access sets.

Closes #827

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