From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?Q3Jpc3RpYW4gUm9kcsOtZ3Vleg==?= Subject: [PATCH] auditd.service: if audit=0 in kernel cmdline do not start service Date: Thu, 14 Aug 2014 20:13:27 -0400 Message-ID: <53ED50A7.5010809@opensuse.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040406020607090705090602" Return-path: Received: from mx1.redhat.com (ext-mx13.extmail.prod.ext.phx2.redhat.com [10.5.110.18]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7F0DY9V019762 for ; Thu, 14 Aug 2014 20:13:34 -0400 Received: from mail-qc0-f171.google.com (mail-qc0-f171.google.com [209.85.216.171]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7F0DWg8022453 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Thu, 14 Aug 2014 20:13:33 -0400 Received: by mail-qc0-f171.google.com with SMTP id r5so1788668qcx.30 for ; Thu, 14 Aug 2014 17:13:32 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com, sgrubb@redhat.com List-Id: linux-audit@redhat.com This is a multi-part message in MIME format. --------------040406020607090705090602 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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." --------------040406020607090705090602 Content-Type: text/x-patch; name="auditd-donot-start-if-kernel-cmdline-disabled.patch" Content-Disposition: attachment; filename="auditd-donot-start-if-kernel-cmdline-disabled.patch" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx3-phx2.redhat.com id s7FEIMEh013260 Index: init.d/auditd.service =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- init.d/auditd.service (revisi=C3=B3n: 991) +++ init.d/auditd.service (copia de trabajo) @@ -5,6 +5,7 @@ Conflicts=3Dshutdown.target Before=3Dsysinit.target shutdown.target RefuseManualStop=3Dyes +ConditionKernelCommandLine=3D!audit=3D0 =20 [Service] ExecStart=3D/sbin/auditd -n --------------040406020607090705090602 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 7bit --------------040406020607090705090602--