From 7c3d4d0cb1fdec46516f82bc8c3d1ed6aa0a2163 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Sun, 16 Oct 2011 09:43:46 +0900 Subject: [PATCH] --- yaml --- r: 264568 b: refs/heads/master c: 6afcb3b7393f5aa388a0d077c490ed411ab3cd27 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/security/tomoyo/common.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index bfc8e0bc3942..544f235c796a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 16014d87509e26d6ed6935adbbf437a571fb5870 +refs/heads/master: 6afcb3b7393f5aa388a0d077c490ed411ab3cd27 diff --git a/trunk/security/tomoyo/common.c b/trunk/security/tomoyo/common.c index 365f3bddee79..96b7233a0df6 100644 --- a/trunk/security/tomoyo/common.c +++ b/trunk/security/tomoyo/common.c @@ -502,8 +502,10 @@ static struct tomoyo_profile *tomoyo_assign_profile TOMOYO_CONFIG_WANT_REJECT_LOG; memset(ptr->config, TOMOYO_CONFIG_USE_DEFAULT, sizeof(ptr->config)); - ptr->pref[TOMOYO_PREF_MAX_AUDIT_LOG] = 1024; - ptr->pref[TOMOYO_PREF_MAX_LEARNING_ENTRY] = 2048; + ptr->pref[TOMOYO_PREF_MAX_AUDIT_LOG] = + CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG; + ptr->pref[TOMOYO_PREF_MAX_LEARNING_ENTRY] = + CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY; mb(); /* Avoid out-of-order execution. */ ns->profile_ptr[profile] = ptr; entry = NULL;