]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
apparmor: file never has NULL f_path.mnt
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 28 May 2025 03:03:43 +0000 (23:03 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 17 Jun 2025 22:04:36 +0000 (18:04 -0400)
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/apparmor/file.c

index d52a5b14dad4c75f24acdb93a07a148ee620d9f2..f494217112c9c4a62962303352c8e7822796c971 100644 (file)
@@ -604,7 +604,7 @@ int aa_file_perm(const char *op, const struct cred *subj_cred,
        rcu_read_unlock();
        /* TODO: label cross check */
 
-       if (file->f_path.mnt && path_mediated_fs(file->f_path.dentry))
+       if (path_mediated_fs(file->f_path.dentry))
                error = __file_path_perm(op, subj_cred, label, flabel, file,
                                         request, denied, in_atomic);