Skip to content

Commit 273a291

Browse files
author
Al Viro
committed
apparmor: file never has NULL f_path.mnt
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent d1832e6 commit 273a291

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

security/apparmor/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ int aa_file_perm(const char *op, const struct cred *subj_cred,
604604
rcu_read_unlock();
605605
/* TODO: label cross check */
606606

607-
if (file->f_path.mnt && path_mediated_fs(file->f_path.dentry))
607+
if (path_mediated_fs(file->f_path.dentry))
608608
error = __file_path_perm(op, subj_cred, label, flabel, file,
609609
request, denied, in_atomic);
610610

0 commit comments

Comments
 (0)