diff options
-rw-r--r-- | security/tomoyo/common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/security/tomoyo/common.c b/security/tomoyo/common.c index 365f3bddee79..96b7233a0df6 100644 --- a/security/tomoyo/common.c +++ b/security/tomoyo/common.c | |||
@@ -502,8 +502,10 @@ static struct tomoyo_profile *tomoyo_assign_profile | |||
502 | TOMOYO_CONFIG_WANT_REJECT_LOG; | 502 | TOMOYO_CONFIG_WANT_REJECT_LOG; |
503 | memset(ptr->config, TOMOYO_CONFIG_USE_DEFAULT, | 503 | memset(ptr->config, TOMOYO_CONFIG_USE_DEFAULT, |
504 | sizeof(ptr->config)); | 504 | sizeof(ptr->config)); |
505 | ptr->pref[TOMOYO_PREF_MAX_AUDIT_LOG] = 1024; | 505 | ptr->pref[TOMOYO_PREF_MAX_AUDIT_LOG] = |
506 | ptr->pref[TOMOYO_PREF_MAX_LEARNING_ENTRY] = 2048; | 506 | CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG; |
507 | ptr->pref[TOMOYO_PREF_MAX_LEARNING_ENTRY] = | ||
508 | CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY; | ||
507 | mb(); /* Avoid out-of-order execution. */ | 509 | mb(); /* Avoid out-of-order execution. */ |
508 | ns->profile_ptr[profile] = ptr; | 510 | ns->profile_ptr[profile] = ptr; |
509 | entry = NULL; | 511 | entry = NULL; |