Skip to content

Commit

Permalink
selinux: Remove unused variable in selinux_inode_init_security
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Gruenbacher <[email protected]>
Acked-by: Stephen Smalley <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
Andreas Gruenbacher authored and pcmoore committed Dec 24, 2015
1 parent ebd68df commit a44ca52
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a44ca52

Please sign in to comment.