+ audit-remove-unnecessary-if-config_audit.patch added to -mm tree

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

 



The patch titled
     Subject: audit: remove unnecessary #if CONFIG_AUDIT
has been added to the -mm tree.  Its filename is
     audit-remove-unnecessary-if-config_audit.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Gao feng <gaofeng@xxxxxxxxxxxxxx>
Subject: audit: remove unnecessary #if CONFIG_AUDIT

The files which include kernel/audit.h are complied only when CONFIG_AUDIT
is set.

Just like audit_pid, there is no need to surround audit_ever_enabled with
CONFIG_AUDIT.

Signed-off-by: Gao feng <gaofeng@xxxxxxxxxxxxxx>
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Cc: Eric Paris <eparis@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/audit.h |    2 --
 1 file changed, 2 deletions(-)

diff -puN kernel/audit.h~audit-remove-unnecessary-if-config_audit kernel/audit.h
--- a/kernel/audit.h~audit-remove-unnecessary-if-config_audit
+++ a/kernel/audit.h
@@ -59,9 +59,7 @@ struct audit_entry {
 	struct audit_krule	rule;
 };
 
-#ifdef CONFIG_AUDIT
 extern int audit_ever_enabled;
-#endif
 
 extern int audit_pid;
 
_

Patches currently in -mm which might be from gaofeng@xxxxxxxxxxxxxx are

linux-next.patch
audit-dont-check-if-kauditd-is-valid-every-time.patch
audit-remove-duplicate-export-of-audit_enabled.patch
audit-remove-unnecessary-if-config_audit.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux