diff options
| author | James Morris <[email protected]> | 2009-01-29 00:51:11 +0000 |
|---|---|---|
| committer | James Morris <[email protected]> | 2009-01-29 21:55:04 +0000 |
| commit | ef935b9136eeaa203f75bf0b4d6e398c29f44d27 (patch) | |
| tree | 22f961625dda1d64cd78f443bb7023ac16eb860d /security/selinux/hooks.c | |
| parent | selinux: remove secondary ops call to bprm_committed_creds (diff) | |
| download | kernel-ef935b9136eeaa203f75bf0b4d6e398c29f44d27.tar.gz kernel-ef935b9136eeaa203f75bf0b4d6e398c29f44d27.zip | |
selinux: remove secondary ops call to sb_mount
Remove secondary ops call to sb_mount, which is
a noop in capabilities.
Acked-by: Serge Hallyn <[email protected]>
Acked-by: Eric Paris <[email protected]>
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
| -rw-r--r-- | security/selinux/hooks.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 516058ff0632..bdd483096b39 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -2531,11 +2531,6 @@ static int selinux_mount(char *dev_name, void *data) { const struct cred *cred = current_cred(); - int rc; - - rc = secondary_ops->sb_mount(dev_name, path, type, flags, data); - if (rc) - return rc; if (flags & MS_REMOUNT) return superblock_has_perm(cred, path->mnt->mnt_sb, |
