[cgmanager-devel] [cgmanager/cgmanager] 36d6e4: chown_cgroup_path: call chown not itself on procs+...
GitHub
noreply at github.com
Tue Dec 10 06:06:40 UTC 2013
Branch: refs/heads/master
Home: https://github.com/cgmanager/cgmanager
Commit: 36d6e4256c555b9eaf26d97d9e691622cce096eb
https://github.com/cgmanager/cgmanager/commit/36d6e4256c555b9eaf26d97d9e691622cce096eb
Author: Serge Hallyn <serge.hallyn at ubuntu.com>
Date: 2013-12-09 (Mon, 09 Dec 2013)
Changed paths:
M cgmanager.c
Log Message:
-----------
chown_cgroup_path: call chown not itself on procs+tasks
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Commit: 6351d96f9bc201d40602a339251537922f20d0ae
https://github.com/cgmanager/cgmanager/commit/6351d96f9bc201d40602a339251537922f20d0ae
Author: Serge Hallyn <serge.hallyn at ubuntu.com>
Date: 2013-12-09 (Mon, 09 Dec 2013)
Changed paths:
M cgmanager.c
M fs.c
M fs.h
Log Message:
-----------
fixes to chown
move the chown helper to fs.c
when requestor r requests cgroup /a/b/c to be created, then we chown
all files under /a/b/c to r's uid/gid. This is because r already had
the rights to write under /a/b, therefore writing to files under
/a/b/c/ is safe. If r requests chowning /a/b/c to some uid (its own
or any other), then only the directory and proc+tasks files are
chowned.
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Compare: https://github.com/cgmanager/cgmanager/compare/e651409c06ab...6351d96f9bc2
More information about the cgmanager-devel
mailing list