]> Git Repo - linux.git/commitdiff
[PATCH] selinux-canonicalize-getxattr-fix
authorAndrew Morton <[email protected]>
Sun, 30 Oct 2005 22:59:23 +0000 (14:59 -0800)
committerLinus Torvalds <[email protected]>
Mon, 31 Oct 2005 01:37:11 +0000 (17:37 -0800)
security/selinux/hooks.c: In function `selinux_inode_getxattr':
security/selinux/hooks.c:2193: warning: unused variable `sbsec'

Cc: James Morris <[email protected]>
Cc: Stephen Smalley <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
security/selinux/hooks.c

index d9ec85292e1c0ecb703f1a0c9f16a9493fc2b902..d50d7a782cf5a70e10eb11f413509a502489752e 100644 (file)
@@ -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);
 }
 
This page took 0.053522 seconds and 4 git commands to generate.