diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index d9ec85292e1c..d50d7a782cf5 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2205,9 +2205,6 @@ static void selinux_inode_post_setxattr(struct dentry *dentry, char *name, | |||
2205 | 2205 | ||
2206 | static int selinux_inode_getxattr (struct dentry *dentry, char *name) | 2206 | static int selinux_inode_getxattr (struct dentry *dentry, char *name) |
2207 | { | 2207 | { |
2208 | struct inode *inode = dentry->d_inode; | ||
2209 | struct superblock_security_struct *sbsec = inode->i_sb->s_security; | ||
2210 | |||
2211 | return dentry_has_perm(current, NULL, dentry, FILE__GETATTR); | 2208 | return dentry_has_perm(current, NULL, dentry, FILE__GETATTR); |
2212 | } | 2209 | } |
2213 | 2210 | ||