diff options
Diffstat (limited to 'security/tomoyo/common.h')
-rw-r--r-- | security/tomoyo/common.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h index d1c758e7f92b..435b3d869fc5 100644 --- a/security/tomoyo/common.h +++ b/security/tomoyo/common.h | |||
@@ -179,6 +179,16 @@ enum tomoyo_domain_info_flags_index { | |||
179 | TOMOYO_MAX_DOMAIN_INFO_FLAGS | 179 | TOMOYO_MAX_DOMAIN_INFO_FLAGS |
180 | }; | 180 | }; |
181 | 181 | ||
182 | /* Index numbers for audit type. */ | ||
183 | enum tomoyo_grant_log { | ||
184 | /* Follow profile's configuration. */ | ||
185 | TOMOYO_GRANTLOG_AUTO, | ||
186 | /* Do not generate grant log. */ | ||
187 | TOMOYO_GRANTLOG_NO, | ||
188 | /* Generate grant_log. */ | ||
189 | TOMOYO_GRANTLOG_YES, | ||
190 | }; | ||
191 | |||
182 | /* Index numbers for group entries. */ | 192 | /* Index numbers for group entries. */ |
183 | enum tomoyo_group_id { | 193 | enum tomoyo_group_id { |
184 | TOMOYO_PATH_GROUP, | 194 | TOMOYO_PATH_GROUP, |
@@ -471,6 +481,7 @@ struct tomoyo_request_info { | |||
471 | int need_dev; | 481 | int need_dev; |
472 | } mount; | 482 | } mount; |
473 | } param; | 483 | } param; |
484 | struct tomoyo_acl_info *matched_acl; | ||
474 | u8 param_type; | 485 | u8 param_type; |
475 | bool granted; | 486 | bool granted; |
476 | u8 retry; | 487 | u8 retry; |
@@ -635,6 +646,7 @@ struct tomoyo_condition { | |||
635 | u16 names_count; /* Number of "struct tomoyo_name_union names". */ | 646 | u16 names_count; /* Number of "struct tomoyo_name_union names". */ |
636 | u16 argc; /* Number of "struct tomoyo_argv". */ | 647 | u16 argc; /* Number of "struct tomoyo_argv". */ |
637 | u16 envc; /* Number of "struct tomoyo_envp". */ | 648 | u16 envc; /* Number of "struct tomoyo_envp". */ |
649 | u8 grant_log; /* One of values in "enum tomoyo_grant_log". */ | ||
638 | /* | 650 | /* |
639 | * struct tomoyo_condition_element condition[condc]; | 651 | * struct tomoyo_condition_element condition[condc]; |
640 | * struct tomoyo_number_union values[numbers_count]; | 652 | * struct tomoyo_number_union values[numbers_count]; |