[PATCH] Bug fix for sys_acct

From: Stephen Smalley <sds_at_tislabs.com>
Date: Fri, 24 Aug 2001 13:03:55 -0400 (EDT)

I've attached a bug fix patch for lsm/kernel/acct.c. Thanks to Lachlan McIlroy for noticing this bug and mentioning it on the linux-security-module mailing list.

--

Stephen D. Smalley, NAI Labs
ssmalley@nai.com

Index: lsm/kernel/acct.c
diff -u lsm/kernel/acct.c:1.2 lsm/kernel/acct.c:1.3
--- lsm/kernel/acct.c:1.2 Mon Jun 11 16:29:09 2001
+++ lsm/kernel/acct.c Fri Aug 24 09:29:58 2001 @@ -213,7 +213,8 @@
 out:

         return error;
 out_err:

-	filp_close(file, NULL);
+	if (file)
+		filp_close(file, NULL);
 	goto out;

 }  

--

You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message. Received on Fri 24 Aug 2001 - 13:15:20 EDT

This archive was generated by hypermail 2.2.0 on Wed 11 Jun 2008 - 08:10:26 EDT