mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] SELinux - cleanup stray variable in selinux_inode_init_security()
@ 2006-03-15 13:44 James Morris
  0 siblings, 0 replies; only message in thread
From: James Morris @ 2006-03-15 13:44 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Stephen Smalley

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

Please apply.

Signed-off-by: James Morris <jmorris@namei.org>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>

---

 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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-15 13:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-15 13:44 [PATCH] SELinux - cleanup stray variable in selinux_inode_init_security() James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®