| Date | Mon, 13 Dec 2021 16:15:40 -0500 | Subject | Re: [PATCH v6 06/17] ima: Move policy related variables into ima_namespace | From | Stefan Berger <> |
| |
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
|