mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
ece2ccb668
commit
d8c9584ea2
14 changed files with 27 additions and 25 deletions
|
|
@ -2507,7 +2507,7 @@ static int selinux_mount(char *dev_name,
|
|||
const struct cred *cred = current_cred();
|
||||
|
||||
if (flags & MS_REMOUNT)
|
||||
return superblock_has_perm(cred, path->mnt->mnt_sb,
|
||||
return superblock_has_perm(cred, path->dentry->d_sb,
|
||||
FILESYSTEM__REMOUNT, NULL);
|
||||
else
|
||||
return path_has_perm(cred, path, FILE__MOUNTON);
|
||||
|
|
|
|||
Loading…
Reference in a new issue