diff options
Diffstat (limited to 'security/tomoyo/common.h')
-rw-r--r-- | security/tomoyo/common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h index 139ad7544460..2b39e63234c8 100644 --- a/security/tomoyo/common.h +++ b/security/tomoyo/common.h | |||
@@ -211,6 +211,12 @@ enum tomoyo_mac_category_index { | |||
211 | */ | 211 | */ |
212 | #define TOMOYO_RETRY_REQUEST 1 | 212 | #define TOMOYO_RETRY_REQUEST 1 |
213 | 213 | ||
214 | /* Index numbers for profile's PREFERENCE values. */ | ||
215 | enum tomoyo_pref_index { | ||
216 | TOMOYO_PREF_MAX_LEARNING_ENTRY, | ||
217 | TOMOYO_MAX_PREF | ||
218 | }; | ||
219 | |||
214 | /********** Structure definitions. **********/ | 220 | /********** Structure definitions. **********/ |
215 | 221 | ||
216 | /* Common header for holding ACL entries. */ | 222 | /* Common header for holding ACL entries. */ |
@@ -497,6 +503,7 @@ struct tomoyo_profile { | |||
497 | struct tomoyo_preference preference; | 503 | struct tomoyo_preference preference; |
498 | u8 default_config; | 504 | u8 default_config; |
499 | u8 config[TOMOYO_MAX_MAC_INDEX + TOMOYO_MAX_MAC_CATEGORY_INDEX]; | 505 | u8 config[TOMOYO_MAX_MAC_INDEX + TOMOYO_MAX_MAC_CATEGORY_INDEX]; |
506 | unsigned int pref[TOMOYO_MAX_PREF]; | ||
500 | }; | 507 | }; |
501 | 508 | ||
502 | /********** Function prototypes. **********/ | 509 | /********** Function prototypes. **********/ |