aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/tomoyo/common.h')
-rw-r--r--security/tomoyo/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h
index f40ec1fcbc5d..4bc3975516cb 100644
--- a/security/tomoyo/common.h
+++ b/security/tomoyo/common.h
@@ -38,6 +38,9 @@ struct linux_binprm;
38/* Profile number is an integer between 0 and 255. */ 38/* Profile number is an integer between 0 and 255. */
39#define TOMOYO_MAX_PROFILES 256 39#define TOMOYO_MAX_PROFILES 256
40 40
41/* Group number is an integer between 0 and 255. */
42#define TOMOYO_MAX_ACL_GROUPS 256
43
41/* Index numbers for operation mode. */ 44/* Index numbers for operation mode. */
42enum tomoyo_mode_index { 45enum tomoyo_mode_index {
43 TOMOYO_CONFIG_DISABLED, 46 TOMOYO_CONFIG_DISABLED,
@@ -357,6 +360,7 @@ struct tomoyo_domain_info {
357 /* Name of this domain. Never NULL. */ 360 /* Name of this domain. Never NULL. */
358 const struct tomoyo_path_info *domainname; 361 const struct tomoyo_path_info *domainname;
359 u8 profile; /* Profile number to use. */ 362 u8 profile; /* Profile number to use. */
363 u8 group; /* Group number to use. */
360 bool is_deleted; /* Delete flag. */ 364 bool is_deleted; /* Delete flag. */
361 bool quota_warned; /* Quota warnning flag. */ 365 bool quota_warned; /* Quota warnning flag. */
362 bool transition_failed; /* Domain transition failed flag. */ 366 bool transition_failed; /* Domain transition failed flag. */
@@ -446,6 +450,7 @@ struct tomoyo_io_buffer {
446 int step; 450 int step;
447 int query_index; 451 int query_index;
448 u16 index; 452 u16 index;
453 u8 acl_group_index;
449 u8 bit; 454 u8 bit;
450 u8 w_pos; 455 u8 w_pos;
451 bool eof; 456 bool eof;
@@ -666,6 +671,8 @@ extern struct mutex tomoyo_policy_lock;
666/* Has /sbin/init started? */ 671/* Has /sbin/init started? */
667extern bool tomoyo_policy_loaded; 672extern bool tomoyo_policy_loaded;
668 673
674extern struct list_head tomoyo_acl_group[TOMOYO_MAX_ACL_GROUPS];
675
669/* The kernel's domain. */ 676/* The kernel's domain. */
670extern struct tomoyo_domain_info tomoyo_kernel_domain; 677extern struct tomoyo_domain_info tomoyo_kernel_domain;
671 678