mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
To: pebolle@tiscali.nl, linux-security-module@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, takedakn@nttdata.co.jp
Subject: Re: [PATCH 10/21] tomoyo: drop unused Kconfig symbols
Date: Fri, 14 Oct 2011 22:02:20 +0900	[thread overview]
Message-ID: <201110142202.CHH39010.OHJLFFtQOSMVOF@I-love.SAKURA.ne.jp> (raw)
In-Reply-To: <1318595342.6132.67.camel@x61.thuisdomein>

Paul Bolle wrote:
>  security/tomoyo/Kconfig |   24 ------------------------
>  1 files changed, 0 insertions(+), 24 deletions(-)

Thank you for finding. Below patch (for 3.2) fixes this error.
I'll carry below patch on TOMOYO's website (for 3.1).
--------------------
[PATCH] TOMOYO: Fix unused kernel config option.

CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY and
CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG introduced by commit 0e4ae0e0
"TOMOYO: Make several options configurable." were by error not used.

Reported-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
---
diff --git a/security/tomoyo/common.c b/security/tomoyo/common.c
index 902650b..48bb7af 100644
--- a/security/tomoyo/common.c
+++ b/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;

      reply	other threads:[~2011-10-14 13:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-14 12:29 Paul Bolle
2011-10-14 13:02 ` Tetsuo Handa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201110142202.CHH39010.OHJLFFtQOSMVOF@I-love.SAKURA.ne.jp \
    --to=penguin-kernel@i-love.sakura.ne.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=pebolle@tiscali.nl \
    --cc=takedakn@nttdata.co.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®