[PATCH] SELinux - cleanup stray variable in selinux_inode_init_security()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch removes an unneded pointer variable in
selinux_inode_init_security().

Please apply.

Signed-off-by: James Morris <[email protected]>
Acked-by: Stephen Smalley <[email protected]>

---

 security/selinux/hooks.c |    2 --
 1 files changed, 2 deletions(-)
  
diff -purN -X dontdiff linux-2.6.16-rc6.p/security/selinux/hooks.c linux-2.6.16-rc6.w/security/selinux/hooks.c
--- linux-2.6.16-rc6.p/security/selinux/hooks.c	2006-03-13 20:02:35.000000000 -0500
+++ linux-2.6.16-rc6.w/security/selinux/hooks.c	2006-03-13 22:10:33.000000000 -0500
@@ -1929,7 +1929,6 @@ static int selinux_inode_init_security(s
 	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;
@@ -1937,7 +1936,6 @@ static int selinux_inode_init_security(s
 	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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux