]> 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)
commitfd6a6d457928542d2509eac2c24e44f018ff19c1
tree45de78666d03314849cb1ebcd8cc6413705bbfd2
parent6b65d26287136e05892384a38497132838f3b0c2
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: 815bf0bc961c ("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