diff options
Diffstat (limited to 'libcgroup-internal.h')
-rw-r--r-- | libcgroup-internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libcgroup-internal.h b/libcgroup-internal.h index ce2c7c9..c01dfa9 100644 --- a/libcgroup-internal.h +++ b/libcgroup-internal.h @@ -19,6 +19,9 @@ __BEGIN_DECLS #include <libcgroup.h> +#include <limits.h> + +#define CGRULES_CONF_FILE "/etc/cgrules.conf" struct control_value { char name[FILENAME_MAX]; @@ -47,6 +50,15 @@ struct cg_mount_table_s { char path[FILENAME_MAX]; }; +struct cgroup_rules_data { + pid_t pid; /* pid of the process which needs to change group */ + + /* Details of user under consideration for destination cgroup */ + struct passwd *pw; + /* Gid of the process */ + gid_t gid; +}; + __END_DECLS #endif |