summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>2009-06-26 14:49:36 +0900
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2009-06-29 16:28:38 +0530
commitd297b6fc17d51b8c2f6cdc094ada378d49e9a583 (patch)
tree9ce840be0a666a8ad1f13756639c13c886306728 /src/config.c
parent404007be1a80ab2ab75f64195fb692d520df0623 (diff)
downloadlibcg-d297b6fc17d51b8c2f6cdc094ada378d49e9a583.tar.gz
libcg-d297b6fc17d51b8c2f6cdc094ada378d49e9a583.tar.xz
libcg-d297b6fc17d51b8c2f6cdc094ada378d49e9a583.zip
Add the parser of process name in /etc/cgrules.conf.
Hi, Changelog of v6: ================ * The definations of CGROUP_RULE_MAXKEY and CGROUP_RULE_MAXLINE are moved to libcgroup-internal.h since no one from outside should be using them. Changelog of v5: ================ * Rebase the patch to the latest code. Changelog of v4: ================ * Use more safety length of a user name for the buffer "username". * Move the macros min()/max() to src/libcgroup-internal.h for using in src/api.c also. Changelog of v3: ================ * Fix unclear buffer of user by memset(). Changelog of v2: ================ * Remove unnecessary memset(). * Some cleanups. Description: ============ This patch adds the parser of process name in /etc/cgrules.conf. A new rule based on process name is as the following, and the process name is stored into the member "procname" in struct cgroup_rule. <user>:<process name> <controllers> <destination> 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>
Diffstat (limited to 'src/config.c')
0 files changed, 0 insertions, 0 deletions