From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E374C4338F for ; Thu, 5 Aug 2021 10:07:36 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D492760F35 for ; Thu, 5 Aug 2021 10:07:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D492760F35 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=korsgaard.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=busybox.net Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id ADA5740481; Thu, 5 Aug 2021 10:07:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nXTI0rOJrwAx; Thu, 5 Aug 2021 10:07:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 8D64340489; Thu, 5 Aug 2021 10:07:33 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 501B11C113E for ; Thu, 5 Aug 2021 10:07:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3A7B9837D2 for ; Thu, 5 Aug 2021 10:07:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1bA8dF9kWDQY for ; Thu, 5 Aug 2021 10:07:06 +0000 (UTC) Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.122]) by smtp1.osuosl.org (Postfix) with ESMTP id 45E7D83478 for ; Thu, 5 Aug 2021 10:07:06 +0000 (UTC) Received: by busybox.osuosl.org (Postfix, from userid 4021) id E5F478B4AF; Thu, 5 Aug 2021 10:06:54 +0000 (UTC) From: Peter Korsgaard To: buildroot@buildroot.org Date: Thu, 5 Aug 2021 11:54:49 +0200 X-Git-Refname: refs/heads/2021.02.x X-Git-Oldrev: 7a48e2628de2d1b69cd8a21ef1366b0deac0e95b X-Git-Newrev: 5bec5af819da06bdf26ae531a20d8740d10654b5 X-Patchwork-Hint: ignore Message-Id: <20210805100654.E5F478B4AF@busybox.osuosl.org> Subject: [Buildroot] [git commit branch/2021.02.x] package/audit: replace deprecated matchpathcon calls from init script 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: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4183530353550059364==" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" --===============4183530353550059364== Content-Type: text/plain commit: https://git.buildroot.net/buildroot/commit/?id=5bec5af819da06bdf26ae531a20d8740d10654b5 branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.02.x This patch replace matchpathcon calls in the auditd init script by calls to selabel_lookup. Indeed, matchpathcon is now deprecated, and this causes warning during the boot process. Signed-off-by: José Pekkarinen Signed-off-by: Thomas Petazzoni (cherry picked from commit 90dd1d6178b01f6da3e59e43d0c7efdf984a72d8) Signed-off-by: Peter Korsgaard --- package/audit/S02auditd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/audit/S02auditd b/package/audit/S02auditd index 2ecf0f1df9..0eef881cee 100644 --- a/package/audit/S02auditd +++ b/package/audit/S02auditd @@ -18,9 +18,9 @@ start(){ # Create dir to store log files in if one doesn't exist. Create # the directory with SELinux permissions if possible - command -v matchpathcon >/dev/null 2>&1 + command -v selabel_lookup >/dev/null 2>&1 if [ $? = 0 ]; then - mkdir -p /var/log/audit -Z `matchpathcon -n /var/log/audit` + mkdir -p /var/log/audit -Z `selabel_lookup -b file -k /var/log/audit` else mkdir -p /var/log/audit fi --===============4183530353550059364== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ buildroot mailing list buildroot@busybox.net http://lists.busybox.net/mailman/listinfo/buildroot --===============4183530353550059364==--