]> git.baikalelectronics.ru Git - kernel.git/commit
ima: fix mprotect checking
authorMimi Zohar <zohar@linux.ibm.com>
Wed, 10 Jun 2020 13:18:26 +0000 (09:18 -0400)
committerMimi Zohar <zohar@linux.ibm.com>
Fri, 12 Jun 2020 15:30:18 +0000 (11:30 -0400)
commit4fa118ab3ae5277ea432cebc0a895637164da45c
tree45de78666d03314849cb1ebcd8cc6413705bbfd2
parent5310e4b47edb4eeeb7b2d315a1d3716f999d24d8
ima: fix mprotect checking

Make sure IMA is enabled before checking mprotect change.  Addresses
report of a 3.7% regression of boot-time.dhcp.

Fixes: ed505b2b2e17 ("ima: verify mprotect change is consistent with mmap policy")
Reported-by: kernel test robot <rong.a.chen@intel.com>
Reviewed-by: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>
Tested-by: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_main.c