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>
This commit is contained in:
parent
d1832e648d
commit
273a291dd7
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue