fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmap
[sfrench/cifs-2.6.git] / security / apparmor / domain.c
index a8da32fecbe70336ff44b7b6b2ac0e3b1abd0ae0..f3715cda59c52b4841a3561a5b3b5b81549c2815 100644 (file)
@@ -862,7 +862,7 @@ int apparmor_bprm_creds_for_exec(struct linux_binprm *bprm)
        const char *info = NULL;
        int error = 0;
        bool unsafe = false;
-       vfsuid_t vfsuid = i_uid_into_vfsuid(file_mnt_user_ns(bprm->file),
+       vfsuid_t vfsuid = i_uid_into_vfsuid(file_mnt_idmap(bprm->file),
                                            file_inode(bprm->file));
        struct path_cond cond = {
                vfsuid_into_kuid(vfsuid),