]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ima: update builtin policies
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 12 Jun 2015 00:48:33 +0000 (20:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:12 +0000 (09:29 -0700)
commit66963999a2b2f589e108c786bfcb2e2b560d920e
tree9ccf2dfc049e3f1d7a1dfd054239bcb118771a7a
parentbf609547cdb2f274fb5bd978affc8649022b5d3a
ima: update builtin policies

commit 24fd03c87695a76f0517df42a37e51b1597d2c8a upstream.

This patch defines a builtin measurement policy "tcb", similar to the
existing "ima_tcb", but with additional rules to also measure files
based on the effective uid and to measure files opened with the "read"
mode bit set (eg. read, read-write).

Changing the builtin "ima_tcb" policy could potentially break existing
users.  Instead of defining a new separate boot command line option each
time the builtin measurement policy is modified, this patch defines a
single generic boot command line option "ima_policy=" to specify the
builtin policy and deprecates the use of the builtin ima_tcb policy.

[The "ima_policy=" boot command line option is based on Roberto Sassu's
"ima: added new policy type exec" patch.]

Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: Dr. Greg Wettstein <gw@idfusion.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/kernel-parameters.txt
security/integrity/ima/ima_policy.c