]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgroup updates: fix several bugs
authorUbuntu <ubuntu@ip-10-181-158-15.ec2.internal>
Mon, 19 Aug 2013 13:34:59 +0000 (13:34 +0000)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 19 Aug 2013 17:24:13 +0000 (12:24 -0500)
commite14f67a7bfa7065480fc7cd47a45f209a0aee79b
treea46c38c436d561c004813bb25f07eb28059c79da
parentc9ec905567952830d58a14d1e3a3ea4e1f8b0041
cgroup updates: fix several bugs

1. add cgroup_get_subsys_abspath() which returns the absolute
path for a subsystem mount, and use that where needed to actually
set cgroup values

2. cgroup_devices_has_{allow,deny}: don't mix int and boolean
values.  Also, accept 'a *:* rwm" as any whitelist entry for
has_allow().

3. subsys_lists_match(): fix an off-by-one error in calculating
updated oldlen.  (we need to keep the extra char for '\0')

4. return -1, not 0, if lxc_cgroup_attach fails to open
/proc/self/cgroup.

Signed-off-by: Ubuntu <ubuntu@ip-10-181-158-15.ec2.internal>
src/lxc/cgroup.c