From: Andrew Morton Date: Sun, 30 Oct 2005 22:59:23 +0000 (-0800) Subject: [PATCH] selinux-canonicalize-getxattr-fix X-Git-Tag: v2.6.15-rc1~59^2~15^2~177 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ce4c2bd1a9dfebaefadc2d34b17c6f12101751be;p=linux-2.6-omap-h63xx.git [PATCH] selinux-canonicalize-getxattr-fix security/selinux/hooks.c: In function `selinux_inode_getxattr': security/selinux/hooks.c:2193: warning: unused variable `sbsec' Cc: James Morris Cc: Stephen Smalley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index d9ec85292e1..d50d7a782cf 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, static int selinux_inode_getxattr (struct dentry *dentry, char *name) { - struct inode *inode = dentry->d_inode; - struct superblock_security_struct *sbsec = inode->i_sb->s_security; - return dentry_has_perm(current, NULL, dentry, FILE__GETATTR); }