]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Add file and directory permissions into cgroup
authorMichal Hocko <mhocko@suse.cz>
Wed, 15 Jun 2011 15:23:39 +0000 (17:23 +0200)
committerJan Safranek <jsafrane@redhat.com>
Wed, 15 Jun 2011 15:23:39 +0000 (17:23 +0200)
commitcc185fb59cc5a67513b3f40d73b6a22dafb8c821
tree80e213ae51af54ffac1278fb9f11b290d81cf396
parent901eb2b5368f30f6d1045e8aa3d68e3d28a0483e
Add file and directory permissions into cgroup

Let's add file permission for tasks and file and directory permissions
for control files into cgroup so that we can add them into configuration
files.
Permissions are initialized to NO_PERMS (unsigned -1 which doesn't
represent any valid permissions) to reflect that no value is set.  Let's
also add a common initialization functions for both cgroup table and
single cgroup.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
include/libcgroup/groups.h
src/config.c
src/libcgroup-internal.h
src/wrapper.c