public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: "Cristian Rodríguez" <crrodriguez@opensuse.org>
To: linux-audit@redhat.com, sgrubb@redhat.com
Subject: [PATCH] auditd.service: if audit=0 in kernel cmdline do not start service
Date: Thu, 14 Aug 2014 20:13:27 -0400	[thread overview]
Message-ID: <53ED50A7.5010809@opensuse.org> (raw)

[-- 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 --]



             reply	other threads:[~2014-08-15  0:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-15  0:13 Cristian Rodríguez [this message]
2014-08-18 22:30 ` [PATCH] auditd.service: if audit=0 in kernel cmdline do not start service Steve Grubb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53ED50A7.5010809@opensuse.org \
    --to=crrodriguez@opensuse.org \
    --cc=linux-audit@redhat.com \
    --cc=sgrubb@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox