summaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2015-12-24 11:09:39 -0500
committerPaul Moore <pmoore@redhat.com>2015-12-24 11:09:39 -0500
commita44ca52ca6bd10ce588102789dde33f9fd6569cf (patch)
tree796eaa3fc310d49c37b5b4bb35bc5726ccd6b9cd /security/selinux/hooks.c
parentebd68df3f24b318d391d15c458d6f43f340ba36a (diff)
downloadop-kernel-dev-a44ca52ca6bd10ce588102789dde33f9fd6569cf.zip
op-kernel-dev-a44ca52ca6bd10ce588102789dde33f9fd6569cf.tar.gz
selinux: Remove unused variable in selinux_inode_init_security
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index d0cfaa9..714acad 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -2753,13 +2753,11 @@ static int selinux_inode_init_security(struct inode *inode, struct inode *dir,
void **value, size_t *len)
{
const struct task_security_struct *tsec = current_security();
- struct inode_security_struct *dsec;
struct superblock_security_struct *sbsec;
u32 sid, newsid, clen;
int rc;
char *context;
- dsec = dir->i_security;
sbsec = dir->i_sb->s_security;
sid = tsec->sid;
OpenPOWER on IntegriCloud