mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 10/21] tomoyo: drop unused Kconfig symbols
@ 2011-10-14 12:29 Paul Bolle
  2011-10-14 13:02 ` Tetsuo Handa
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Bolle @ 2011-10-14 12:29 UTC (permalink / raw)
  To: Kentaro Takeda, Tetsuo Handa; +Cc: linux-kernel

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
 security/tomoyo/Kconfig |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)

diff --git a/security/tomoyo/Kconfig b/security/tomoyo/Kconfig
index 7c7f8c1..d93df71 100644
--- a/security/tomoyo/Kconfig
+++ b/security/tomoyo/Kconfig
@@ -10,30 +10,6 @@ config SECURITY_TOMOYO
 	  found at <http://tomoyo.sourceforge.jp/>.
 	  If you are unsure how to answer this question, answer N.
 
-config SECURITY_TOMOYO_MAX_ACCEPT_ENTRY
-	int "Default maximal count for learning mode"
-	default 2048
-	range 0 2147483647
-	depends on SECURITY_TOMOYO
-	help
-	  This is the default value for maximal ACL entries
-	  that are automatically appended into policy at "learning mode".
-	  Some programs access thousands of objects, so running
-	  such programs in "learning mode" dulls the system response
-	  and consumes much memory.
-	  This is the safeguard for such programs.
-
-config SECURITY_TOMOYO_MAX_AUDIT_LOG
-	int "Default maximal count for audit log"
-	default 1024
-	range 0 2147483647
-	depends on SECURITY_TOMOYO
-	help
-	  This is the default value for maximal entries for
-	  audit logs that the kernel can hold on memory.
-	  You can read the log via /sys/kernel/security/tomoyo/audit.
-	  If you don't need audit logs, you may set this value to 0.
-
 config SECURITY_TOMOYO_OMIT_USERSPACE_LOADER
 	bool "Activate without calling userspace policy loader."
 	default n
-- 
1.7.4.4





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 10/21] tomoyo: drop unused Kconfig symbols
  2011-10-14 12:29 [PATCH 10/21] tomoyo: drop unused Kconfig symbols Paul Bolle
@ 2011-10-14 13:02 ` Tetsuo Handa
  0 siblings, 0 replies; 2+ messages in thread
From: Tetsuo Handa @ 2011-10-14 13:02 UTC (permalink / raw)
  To: pebolle, linux-security-module; +Cc: linux-kernel, takedakn

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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-14 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-14 12:29 [PATCH 10/21] tomoyo: drop unused Kconfig symbols Paul Bolle
2011-10-14 13:02 ` Tetsuo Handa

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®