mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] IMA: do not measure everything opened by root by default
@ 2009-05-12 19:14 Eric Paris
  2009-05-12 21:18 ` Mimi Zohar
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Eric Paris @ 2009-05-12 19:14 UTC (permalink / raw)
  To: zohar; +Cc: jmorris, linux-kernel

The IMA default policy measures every single file opened by root.  This is
terrible for most users.  Consider a system (like mine) with virtual machine
images.  When those images are touched (which happens at boot for me) those
images are measured.  This is just way too much for the default case.

Signed-off-by: Eric Paris <eparis@redhat.com>
---

 security/integrity/ima/ima_policy.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c
index b168c1d..dec6dcb 100644
--- a/security/integrity/ima/ima_policy.c
+++ b/security/integrity/ima/ima_policy.c
@@ -61,8 +61,6 @@ static struct ima_measure_rule_entry default_rules[] = {
 	 .flags = IMA_FUNC | IMA_MASK},
 	{.action = MEASURE,.func = BPRM_CHECK,.mask = MAY_EXEC,
 	 .flags = IMA_FUNC | IMA_MASK},
-	{.action = MEASURE,.func = PATH_CHECK,.mask = MAY_READ,.uid = 0,
-	 .flags = IMA_FUNC | IMA_MASK | IMA_UID}
 };
 
 static LIST_HEAD(measure_default_rules);


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

end of thread, other threads:[~2009-05-15  0:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-12 19:14 [PATCH] IMA: do not measure everything opened by root by default Eric Paris
2009-05-12 21:18 ` Mimi Zohar
2009-05-12 21:27   ` Eric Paris
2009-05-12 21:53     ` [PATCH] IMA: do not measure everything opened by root bydefault Mimi Zohar
2009-05-13 14:54       ` Eric Paris
2009-05-14 13:09         ` Mimi Zohar
2009-05-14 13:12 ` [PATCH] IMA: do not measure everything opened by root by default Mimi Zohar
2009-05-15  0:39 ` James Morris

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®