diff options
-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 67291a385c75..7e90c9e58657 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2681,11 +2681,6 @@ static int selinux_inode_follow_link(struct dentry *dentry, struct nameidata *na | |||
2681 | static int selinux_inode_permission(struct inode *inode, int mask) | 2681 | static int selinux_inode_permission(struct inode *inode, int mask) |
2682 | { | 2682 | { |
2683 | const struct cred *cred = current_cred(); | 2683 | const struct cred *cred = current_cred(); |
2684 | int rc; | ||
2685 | |||
2686 | rc = secondary_ops->inode_permission(inode, mask); | ||
2687 | if (rc) | ||
2688 | return rc; | ||
2689 | 2684 | ||
2690 | if (!mask) { | 2685 | if (!mask) { |
2691 | /* No permission to check. Existence test. */ | 2686 | /* No permission to check. Existence test. */ |