From: Al Viro Date: Wed, 28 May 2025 03:03:43 +0000 (-0400) Subject: apparmor: file never has NULL f_path.mnt X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=273a291dd7e62c42ee315777477dade0ede6636e;p=thirdparty%2Fkernel%2Fstable.git apparmor: file never has NULL f_path.mnt Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/security/apparmor/file.c b/security/apparmor/file.c index d52a5b14dad4c..f494217112c9c 100644 --- a/security/apparmor/file.c +++ b/security/apparmor/file.c @@ -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);