diff options
author | Andrew Morton <akpm@osdl.org> | 2005-10-30 14:59:23 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 17:37:11 -0800 |
commit | ce4c2bd1a9dfebaefadc2d34b17c6f12101751be (patch) | |
tree | dde9437929d9b15ced25758c8389360ba4073cdb /security | |
parent | d381d8a9a08cac9824096213069159be17fd2e2f (diff) | |
download | linux-3.10-ce4c2bd1a9dfebaefadc2d34b17c6f12101751be.tar.gz linux-3.10-ce4c2bd1a9dfebaefadc2d34b17c6f12101751be.tar.bz2 linux-3.10-ce4c2bd1a9dfebaefadc2d34b17c6f12101751be.zip |
[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 <jmorris@namei.org>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'security')
-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 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); } |