[PATCH v6 06/17] ima: Move policy related variables into ima_namespace
Stefan Berger
stefanb at linux.ibm.com
Mon Dec 13 21:15:40 UTC 2021
On 12/10/21 14:47, Stefan Berger wrote:
> @@ -357,7 +359,7 @@ int ima_check_blacklist(struct integrity_iint_cache *iint,
>
> rc = is_binary_blacklisted(digest, digestsize);
> if ((rc == -EPERM) && (iint->flags & IMA_MEASURE))
> - process_buffer_measurement(&init_user_ns, NULL, digest, digestsize,
> + process_buffer_measurement(ns, &init_user_ns, NULL, digest, digestsize,
> "blacklisted-hash", NONE,
> pcr, NULL, false, NULL, 0);
> }
> @@ -527,14 +529,15 @@ void ima_inode_post_setattr(struct user_namespace *mnt_userns,
> struct dentry *dentry)
> {
> struct inode *inode = d_backing_inode(dentry);
> + struct ima_namespace *ns = get_current_ns();
I am getting the ima_namespace now from the dentry in the 3 locations in
this file.
Stefan
More information about the Linux-security-module-archive
mailing list