aboutsummaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/Makefile
diff options
context:
space:
mode:
authorLakshmi Ramasubramanian <nramas@linux.microsoft.com>2020-01-16 18:18:21 -0800
committerMimi Zohar <zohar@linux.ibm.com>2020-01-22 15:22:51 -0500
commit5c7bac9fb2c5929a3b8600c45a972aabf9f410b5 (patch)
tree5cdbb1770166ce93e3e1a3e736d3ae0dfa0bfcf7 /security/integrity/ima/Makefile
parentima: ima/lsm policy rule loading logic bug fixes (diff)
downloadlinux-dev-5c7bac9fb2c5929a3b8600c45a972aabf9f410b5.tar.xz
linux-dev-5c7bac9fb2c5929a3b8600c45a972aabf9f410b5.zip
IMA: pre-allocate buffer to hold keyrings string
ima_match_keyring() is called while holding rcu read lock. Since this function executes in atomic context, it should not call any function that can sleep (such as kstrdup()). This patch pre-allocates a buffer to hold the keyrings string read from the IMA policy and uses that to match the given keyring. Signed-off-by: Lakshmi Ramasubramanian <nramas@linux.microsoft.com> Fixes: e9085e0ad38a ("IMA: Add support to limit measuring keys") Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'security/integrity/ima/Makefile')
0 files changed, 0 insertions, 0 deletions