]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Apply a new rule to 'cgexec' command.
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Fri, 26 Jun 2009 05:51:20 +0000 (14:51 +0900)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Mon, 29 Jun 2009 11:21:11 +0000 (16:51 +0530)
commit581ce3c1ebbfdf0026de7bee75bd928be2a39982
tree4d4b92749c1690ade4e2e9174998605f28867cff
parent1c29610af69bf3bb0e088ed3eca770589849b0da
Apply a new rule to 'cgexec' command.

Hi,

Changelog of v6:
================
 * No change.

Changelog of v5:
================
 * Add the description of a new option "--sticky".

Changelog of v4:
================
 * Add a new option "--sticky" so that cgrulesengd daemon does not change
   the children's cgroups which is executed by 'cgexec' command.

Changelog of v3:
================
 * Set a SETUID to "cgexec" command file.
 * An euid is changed to the executing user from a root user.

Changelog of v2:
================
 * New patch.

Description:
============
This patch applies a new rule to 'cgexec' command.

cgroup_register_unchanged_process() is called so that cgrulesengd
daemon does not change the cgroup of a process, which is executed
by 'cgexec' command.
And cgroup_change_cgroup_flags() is called for applying a new rule.

Thanks
Ken'ichi Ohmichi

Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
doc/man/cgexec.1
src/tools/Makefile.am
src/tools/cgexec.c