IMA: do not measure everything opened by root by default
authorEric Paris <eparis@redhat.com>
Tue, 12 May 2009 19:14:23 +0000 (15:14 -0400)
committerJames Morris <jmorris@namei.org>
Thu, 14 May 2009 23:55:44 +0000 (09:55 +1000)
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>
Acked-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/integrity/ima/ima_policy.c

index b168c1d595cea6715705805d29d7b04f807a1150..dec6dcb1c8de5765049d016bd53ae8230a9dbeb5 100644 (file)
@@ -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);
This page took 0.025437 seconds and 5 git commands to generate.