summaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima.h
diff options
context:
space:
mode:
authorLakshmi Ramasubramanian <nramas@linux.microsoft.com>2019-12-11 08:47:02 -0800
committerMimi Zohar <zohar@linux.ibm.com>2019-12-12 08:53:50 -0500
commitc5563bad88e07017e08cce1142903e501598c80c (patch)
tree61b6b5e8886362274b1b97e46e3be309762bacb9 /security/integrity/ima/ima.h
parent96c9e1de99545ce4be1b5e7dff217a896ba96d06 (diff)
downloadlinux-c5563bad88e07017e08cce1142903e501598c80c.tar.bz2
IMA: Check IMA policy flag
process_buffer_measurement() may be called prior to IMA being initialized (for instance, when the IMA hook is called when a key is added to the .builtin_trusted_keys keyring), which would result in a kernel panic. This patch adds the check in process_buffer_measurement() to return immediately if IMA is not initialized yet. Signed-off-by: Lakshmi Ramasubramanian <nramas@linux.microsoft.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'security/integrity/ima/ima.h')
0 files changed, 0 insertions, 0 deletions