]> git.baikalelectronics.ru Git - kernel.git/commit
ima: add policy support for file system uuid
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>
Mon, 3 Sep 2012 20:23:13 +0000 (23:23 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 6 Feb 2013 15:40:29 +0000 (10:40 -0500)
commitbf49f7200bf58aed442ac18884e0eceb4305d5b6
treee3bcc153e1218302a3bccd30f55295361396a781
parentc68c16080ec603402b53c8ea097b711e95422529
ima: add policy support for file system uuid

The IMA policy permits specifying rules to enable or disable
measurement/appraisal/audit based on the file system magic number.
If, for example, the policy contains an ext4 measurement rule,
the rule is enabled for all ext4 partitions.

Sometimes it might be necessary to enable measurement/appraisal/audit
only for one partition and disable it for another partition of the
same type.  With the existing IMA policy syntax, this can not be done.

This patch provides support for IMA policy rules to specify the file
system by its UUID (eg. fsuuid=397449cd-687d-4145-8698-7fed4a3e0363).

For partitions not being appraised, it might be a good idea to mount
file systems with the 'noexec' option to prevent executing non-verified
binaries.

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