From patchwork Sat Nov 3 16:42:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 992665 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=datacom.com.br Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42nPrR6nyQzB4gH for ; Sun, 4 Nov 2018 03:43:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A1051227A9; Sat, 3 Nov 2018 16:42:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vcsaJb3-dsVC; Sat, 3 Nov 2018 16:42:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 923C3227A5; Sat, 3 Nov 2018 16:42:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id D94001BF587 for ; Sat, 3 Nov 2018 16:42:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D68C2884F1 for ; Sat, 3 Nov 2018 16:42:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9xLeeXeNah1G for ; Sat, 3 Nov 2018 16:42:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.com.br (mx.datacom.ind.br [177.66.5.10]) by hemlock.osuosl.org (Postfix) with ESMTPS id 1AB6E884DE for ; Sat, 3 Nov 2018 16:42:54 +0000 (UTC) Received: from mail.datacom.com.br (localhost [127.0.0.1]) by mail.datacom.com.br (Postfix) with ESMTPS id 8B4951BA067E; Sat, 3 Nov 2018 13:43:18 -0300 (-03) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.com.br (Postfix) with ESMTP id 5D3C21BA11B7; Sat, 3 Nov 2018 13:43:18 -0300 (-03) Received: from mail.datacom.com.br ([127.0.0.1]) by localhost (mail.datacom.com.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dvBAVPvYCSAJ; Sat, 3 Nov 2018 13:43:18 -0300 (-03) Received: from p7-1130br.casantos.org (unknown [201.86.221.14]) by mail.datacom.com.br (Postfix) with ESMTPSA id A24601BA067E; Sat, 3 Nov 2018 13:43:17 -0300 (-03) From: Carlos Santos To: buildroot@buildroot.org Date: Sat, 3 Nov 2018 13:42:40 -0300 Message-Id: <20181103164244.10607-1-casantos@datacom.com.br> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH 0/4] audit: fix broken startup and make some improvements X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adam Duskett MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" I stomped on these problems while working on the logging init scripts, so let's fix them right now, since this does not depend on other changes. Patch 1: Fixes broken auditd package. audispd is installed at /usr/sbin but the configuration file pointed to /sbin, causing auditd to fail on startup. Add a patch fixing auditd.conf. Patch 2: Rename S01auditd to S02auditd to ensure that auditd is starded after the syslog daemon, otherwise the initial log messages will be sent to the console (and probably lost, since almost nobody watches the system console on embedded systems). Patch 3: Enable AUDIT in the kernel if the audit package is selected, since auditd is useless and fails to load otherwise. Patch 4: Since we are here, bump audit to version 2.8.4. Carlos Santos (4): audit: fix audispd path in auditd.conf audit: ensure that it starts after the logging daemon linux: enble AUDIT if the audit package is selected audit: bump to version 2.8.4 linux/linux.mk | 3 ++ ...0001-Fix-audispd-path-in-auditd.conf.patch | 32 +++++++++++++++++++ package/audit/{S01auditd => S02auditd} | 0 package/audit/audit.hash | 2 +- package/audit/audit.mk | 4 +-- 5 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 package/audit/0001-Fix-audispd-path-in-auditd.conf.patch rename package/audit/{S01auditd => S02auditd} (100%)