]> git.ipfire.org Git - thirdparty/lxc.git/commit
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)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 22:55:21 +0000 (17:55 -0500)
commit0b2b1944a349e412ba74776b84c8be2c105666e0
treeeb17b75a6affbc14fd6570dc50dfe052470ce109
parentf91f524497466d61e46259bd1d0b9a9aaa4adf3f
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