public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* [PATCH] auditd.service: if audit=0 in kernel cmdline do not start service
@ 2014-08-15  0:13 Cristian Rodríguez
  2014-08-18 22:30 ` Steve Grubb
  0 siblings, 1 reply; 2+ messages in thread
From: Cristian Rodríguez @ 2014-08-15  0:13 UTC (permalink / raw)
  To: linux-audit, sgrubb

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

If audit is disabled in the kernel command line, skip systemd service
activation.

-- 
Cristian
"I don't know the key to success, but the key to failure is trying to
please everybody."

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: auditd-donot-start-if-kernel-cmdline-disabled.patch --]
[-- Type: text/x-patch; name="auditd-donot-start-if-kernel-cmdline-disabled.patch", Size: 378 bytes --]

Index: init.d/auditd.service
===================================================================
--- init.d/auditd.service	(revisión: 991)
+++ init.d/auditd.service	(copia de trabajo)
@@ -5,6 +5,7 @@
 Conflicts=shutdown.target
 Before=sysinit.target shutdown.target
 RefuseManualStop=yes
+ConditionKernelCommandLine=!audit=0
 
 [Service]
 ExecStart=/sbin/auditd -n

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] auditd.service: if audit=0 in kernel cmdline do not start service
  2014-08-15  0:13 [PATCH] auditd.service: if audit=0 in kernel cmdline do not start service Cristian Rodríguez
@ 2014-08-18 22:30 ` Steve Grubb
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Grubb @ 2014-08-18 22:30 UTC (permalink / raw)
  To: Cristian Rodríguez; +Cc: linux-audit

On Thursday, August 14, 2014 08:13:27 PM Cristian Rodríguez wrote:
> If audit is disabled in the kernel command line, skip systemd service
> activation.

Applied in commit 996. Thanks!

-Steve

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-18 22:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-15  0:13 [PATCH] auditd.service: if audit=0 in kernel cmdline do not start service Cristian Rodríguez
2014-08-18 22:30 ` Steve Grubb

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