Skip to content

Commit

Permalink
[PATCH] SELinux: cleanup stray variable in selinux_inode_init_security()
Browse files Browse the repository at this point in the history
Remove an unneded pointer variable in selinux_inode_init_security().

Signed-off-by: James Morris <jmorris@namei.org>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
James Morris authored and Linus Torvalds committed Mar 22, 2006
1 parent edb20fb commit cf01efd
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 @@ -1929,15 +1929,13 @@ static int selinux_inode_init_security(struct inode *inode, struct inode *dir,
struct task_security_struct *tsec;
struct inode_security_struct *dsec;
struct superblock_security_struct *sbsec;
struct inode_security_struct *isec;
u32 newsid, clen;
int rc;
char *namep = NULL, *context;

tsec = current->security;
dsec = dir->i_security;
sbsec = dir->i_sb->s_security;
isec = inode->i_security;

if (tsec->create_sid && sbsec->behavior != SECURITY_FS_USE_MNTPOINT) {
newsid = tsec->create_sid;
Expand Down

0 comments on commit cf01efd

Please sign in to comment.