diff options
Diffstat (limited to 'security/integrity/ima/ima_asymmetric_keys.c')
| -rw-r--r-- | security/integrity/ima/ima_asymmetric_keys.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/security/integrity/ima/ima_asymmetric_keys.c b/security/integrity/ima/ima_asymmetric_keys.c index aaae80c4e376..caacfe6860b1 100644 --- a/security/integrity/ima/ima_asymmetric_keys.c +++ b/security/integrity/ima/ima_asymmetric_keys.c @@ -10,6 +10,8 @@ */ #include <keys/asymmetric-type.h> +#include <linux/user_namespace.h> +#include <linux/ima.h> #include "ima.h" /** @@ -58,7 +60,7 @@ void ima_post_key_create_or_update(struct key *keyring, struct key *key, * if the IMA policy is configured to measure a key linked * to the given keyring. */ - process_buffer_measurement(payload, payload_len, + process_buffer_measurement(&nop_mnt_idmap, NULL, payload, payload_len, keyring->description, KEY_CHECK, 0, - keyring->description); + keyring->description, false, NULL, 0); } |
