mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
apparmor: remove useless checks for NULL ->mnt
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
d360775217
commit
8db0185659
@ -215,7 +215,7 @@ static int common_perm_rm(int op, const struct path *dir,
|
||||
struct inode *inode = d_backing_inode(dentry);
|
||||
struct path_cond cond = { };
|
||||
|
||||
if (!inode || !dir->mnt || !mediated_filesystem(dentry))
|
||||
if (!inode || !mediated_filesystem(dentry))
|
||||
return 0;
|
||||
|
||||
cond.uid = inode->i_uid;
|
||||
@ -239,7 +239,7 @@ static int common_perm_create(int op, const struct path *dir,
|
||||
{
|
||||
struct path_cond cond = { current_fsuid(), mode };
|
||||
|
||||
if (!dir->mnt || !mediated_filesystem(dir->dentry))
|
||||
if (!mediated_filesystem(dir->dentry))
|
||||
return 0;
|
||||
|
||||
return common_perm_dir_dentry(op, dir, dentry, mask, &cond);
|
||||
|
Loading…
Reference in New Issue
Block a user