diff options
author | Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp> | 2009-06-26 14:49:36 +0900 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-06-29 16:28:38 +0530 |
commit | d297b6fc17d51b8c2f6cdc094ada378d49e9a583 (patch) | |
tree | 9ce840be0a666a8ad1f13756639c13c886306728 /include | |
parent | 404007be1a80ab2ab75f64195fb692d520df0623 (diff) | |
download | libcg-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 'include')
-rw-r--r-- | include/libcgroup.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/libcgroup.h b/include/libcgroup.h index 9bc74d6..6155f09 100644 --- a/include/libcgroup.h +++ b/include/libcgroup.h @@ -48,11 +48,6 @@ __BEGIN_DECLS * would require us to use a scanner/parser that can parse beyond ASCII */ - -/* Maximum length of a line in the daemon config file */ -#define CGROUP_RULE_MAXLINE (FILENAME_MAX + LOGIN_NAME_MAX + \ - CG_CONTROLLER_MAX + 3) - /* Definitions for the uid and gid members of a cgroup_rules */ #define CGRULE_INVALID (-1) #define CGRULE_WILD (-2) |