diff options
Diffstat (limited to 'include/libcgroup.h')
-rw-r--r-- | include/libcgroup.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libcgroup.h b/include/libcgroup.h index 4da55e4..30c33bb 100644 --- a/include/libcgroup.h +++ b/include/libcgroup.h @@ -48,9 +48,14 @@ __BEGIN_DECLS * would require us to use a scanner/parser that can parse beyond ASCII */ +/* Task command name length (from linux-2.6.29) */ +#define TASK_COMM_LEN 16 + +/* Maximum length of a key(<user>:<process name>) in the daemon config file */ +#define CGROUP_RULE_MAXKEY (LOGIN_NAME_MAX + TASK_COMM_LEN + 1) /* Maximum length of a line in the daemon config file */ -#define CGROUP_RULE_MAXLINE (FILENAME_MAX + LOGIN_NAME_MAX + \ +#define CGROUP_RULE_MAXLINE (FILENAME_MAX + CGROUP_RULE_MAXKEY + \ CG_CONTROLLER_MAX + 3) /* Definitions for the uid and gid members of a cgroup_rules */ |