diff options
author | Eric Paris <eparis@redhat.com> | 2009-05-12 15:14:23 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-05-14 19:55:44 -0400 |
commit | c3d20103d08e5c0b6738fbd0acf3ca004e5356c5 (patch) | |
tree | 4231ff475f11231b3cbca949a7bcad37a9a8cc17 | |
parent | f850a7c040d9faafb41bceb0a05d6bb7432c8c7a (diff) |
IMA: do not measure everything opened by root by default
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>
-rw-r--r-- | 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 b168c1d595ce..dec6dcb1c8de 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[] = { | |||
61 | .flags = IMA_FUNC | IMA_MASK}, | 61 | .flags = IMA_FUNC | IMA_MASK}, |
62 | {.action = MEASURE,.func = BPRM_CHECK,.mask = MAY_EXEC, | 62 | {.action = MEASURE,.func = BPRM_CHECK,.mask = MAY_EXEC, |
63 | .flags = IMA_FUNC | IMA_MASK}, | 63 | .flags = IMA_FUNC | IMA_MASK}, |
64 | {.action = MEASURE,.func = PATH_CHECK,.mask = MAY_READ,.uid = 0, | ||
65 | .flags = IMA_FUNC | IMA_MASK | IMA_UID} | ||
66 | }; | 64 | }; |
67 | 65 | ||
68 | static LIST_HEAD(measure_default_rules); | 66 | static LIST_HEAD(measure_default_rules); |