ima: policy for RAMFS
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>
Tue, 18 Oct 2011 11:16:28 +0000 (14:16 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 20 Jan 2012 02:30:21 +0000 (21:30 -0500)
Don't measure ramfs files.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
security/integrity/ima/ima_policy.c

index d661afbe474c2fce8f74907869be0a644c5789c9..1b422bc56264b8ef1d37e66a4cbbf0afec84ddb6 100644 (file)
@@ -62,6 +62,7 @@ static struct ima_measure_rule_entry default_rules[] = {
        {.action = DONT_MEASURE,.fsmagic = SYSFS_MAGIC,.flags = IMA_FSMAGIC},
        {.action = DONT_MEASURE,.fsmagic = DEBUGFS_MAGIC,.flags = IMA_FSMAGIC},
        {.action = DONT_MEASURE,.fsmagic = TMPFS_MAGIC,.flags = IMA_FSMAGIC},
+       {.action = DONT_MEASURE,.fsmagic = RAMFS_MAGIC,.flags = IMA_FSMAGIC},
        {.action = DONT_MEASURE,.fsmagic = SECURITYFS_MAGIC,.flags = IMA_FSMAGIC},
        {.action = DONT_MEASURE,.fsmagic = SELINUX_MAGIC,.flags = IMA_FSMAGIC},
        {.action = MEASURE,.func = FILE_MMAP,.mask = MAY_EXEC,