Re: Improve init/Kconfig help descriptions [PATCH 4/9]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Andrew
Date: Wednesday, February 20, 2008 - 3:17 pm

On Tue, Feb 19, 2008 at 10:42:10PM -0500, Valdis.Kletnieks@vt.edu wrote:

Ok, if AVC is incidental then I don't need to mention it, and so don't
need to define the acronym.


How about this. I tried to explain what happens to audit messages.

        bool "Auditing support"
        depends on NET
        help
-         Enable auditing infrastructure that can be used with another
-         kernel subsystem, such as SELinux (which requires this for
-         logging of avc messages output).  Does not do system-call
-         auditing without CONFIG_AUDITSYSCALL.
+         Enable an auditing infrastructure that can be used with another
+         kernel subsystem, such as Security-Enhanced Linux (SELinux),
+         which requires this option for logging of security related
+         messages.
+
+         With this option, the kernel can use netlink to pass audit
+         messages to an audit daemon process. Otherwise, audit messages
+         are logged to syslog.
+
+         See <http://www.nsa.gov/selinux/> for more information
+         on Security-Enhanced Linux.
+
+         CONFIG_AUDITSYSCALL (see below) is also required for
+         system-call auditing.
+
+         If unsure, say N.

I'm puzzled about "end up in the kernel syslog". Looking at include/linux/audit.h
it seems that they go nowhere:

#ifdef CONFIG_AUDIT
  [...]
#else
#define audit_log(c,g,t,f,...) do { ; } while (0)
#define audit_log_start(c,g,t) ({ NULL; })
#define audit_log_vformat(b,f,a) do { ; } while (0)
#define audit_log_format(b,f,...) do { ; } while (0)
#define audit_log_end(b) do { ; } while (0)
#define audit_log_hex(a,b,l) do { ; } while (0)
#define audit_log_untrustedstring(a,s) do { ; } while (0)
#define audit_log_n_untrustedstring(a,n,s) do { ; } while (0)
#define audit_log_d_path(b, p, d) do { ; } while (0)
#define audit_enabled 0
#endif

So it looks like if CONFIG_AUDIT is not defined then audit messages are
ignored. Syslog is used by kernel/audit.c when there is an audit
failure, which seems to be mainly if the userspace audit daemon is not
running.

Nick.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Improve init/Kconfig help descriptions [PATCH 0/9], Nick Andrew, (Tue Feb 19, 7:06 am)
Improve init/Kconfig help descriptions [PATCH 1/9], Nick Andrew, (Tue Feb 19, 7:09 am)
Re: Improve init/Kconfig help descriptions [PATCH 2/9], Nick Andrew, (Tue Feb 19, 7:11 am)
Improve init/Kconfig help descriptions [PATCH 3/9], Nick Andrew, (Tue Feb 19, 7:33 am)
Improve init/Kconfig help descriptions [PATCH 4/9], Nick Andrew, (Tue Feb 19, 7:38 am)
Re: Improve init/Kconfig help descriptions [PATCH 3/9], Pavel Emelyanov, (Tue Feb 19, 7:42 am)
Improve init/Kconfig help descriptions [PATCH 5/9], Nick Andrew, (Tue Feb 19, 7:53 am)
Re: Improve init/Kconfig help descriptions [PATCH 3/9], Nick Andrew, (Tue Feb 19, 8:10 am)
Improve init/Kconfig help descriptions [PATCH 6/9], Nick Andrew, (Tue Feb 19, 8:12 am)
Improve init/Kconfig help descriptions [PATCH 7/9], Nick Andrew, (Tue Feb 19, 8:15 am)
Re: Improve init/Kconfig help descriptions [PATCH 3/9], Pavel Emelyanov, (Tue Feb 19, 8:16 am)
Improve init/Kconfig help descriptions [PATCH 8/9], Nick Andrew, (Tue Feb 19, 8:21 am)
Improve init/Kconfig help descriptions [PATCH 9/9], Nick Andrew, (Tue Feb 19, 8:27 am)
Re: Improve init/Kconfig help descriptions [PATCH 6/9], Paul Jackson, (Tue Feb 19, 8:39 am)
Re: Improve init/Kconfig help descriptions [PATCH 3/9], Serge E. Hallyn, (Tue Feb 19, 8:50 am)
Re: Improve init/Kconfig help descriptions [PATCH 3/9], Randy Dunlap, (Tue Feb 19, 9:44 am)
Re: Improve init/Kconfig help descriptions [PATCH 5/9], Randy Dunlap, (Tue Feb 19, 1:17 pm)
Re: Improve init/Kconfig help descriptions [PATCH 3/9], Nick Andrew, (Tue Feb 19, 3:41 pm)
Re: Improve init/Kconfig help descriptions [PATCH 6/9], Paul Menage, (Tue Feb 19, 7:04 pm)
Re: Improve init/Kconfig help descriptions [PATCH 6/9], Nick Andrew, (Tue Feb 19, 7:54 pm)
Re: Improve init/Kconfig help descriptions [PATCH 6/9], Paul Menage, (Tue Feb 19, 8:12 pm)
Re: Improve init/Kconfig help descriptions [PATCH 4/9], Valdis.Kletnieks, (Tue Feb 19, 8:42 pm)
Re: Improve init/Kconfig help descriptions [PATCH 6/9], Nick Andrew, (Wed Feb 20, 5:41 am)
Re: Improve init/Kconfig help descriptions [PATCH 6/9], Paul Jackson, (Wed Feb 20, 9:43 am)
Re: Improve init/Kconfig help descriptions [PATCH 6/9], Nick Andrew, (Wed Feb 20, 2:31 pm)
Re: Improve init/Kconfig help descriptions [PATCH 4/9], Nick Andrew, (Wed Feb 20, 3:17 pm)