]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
cgcreate, cgconfigparser: Fixed permissions when only one of '-f' and '-d' is set.
authorJan Safranek <jsafrane@redhat.com>
Fri, 9 Dec 2011 14:04:24 +0000 (15:04 +0100)
committerJan Safranek <jsafrane@redhat.com>
Fri, 16 Dec 2011 12:51:40 +0000 (13:51 +0100)
commita4df5d76ce554f89b26f23121bbc7927c0c99cf4
tree1c72415184b585cfeab8a982799d1203611ad762
parentba9551ead78ba9acc566435a3aee3a31c8cd9798
cgcreate, cgconfigparser: Fixed permissions when only one of '-f' and '-d' is set.

When only one of '-f' and '-d' is set, the other is set automatically to
zero and nobody then has the rights to read/modify a group or group's
parameters.

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
src/tools/cgconfig.c
src/tools/cgcreate.c
tests/tools/cgconfigparser/permissions