Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Remove deprecated matchpathcon calls
@ 2021-07-23  9:51 José Pekkarinen
  2021-07-24 21:38 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: José Pekkarinen @ 2021-07-23  9:51 UTC (permalink / raw)
  To: buildroot; +Cc: José Pekkarinen

This patch removes matchpathcon calls from
the auditd init script, removing some deprecated
warning in the init process.

Signed-off-by: José Pekkarinen <jose.pekkarinen@unikie.com>
Change-Id: I22bdf73de732e9d107ec06a4b9434e70eec662a5
---
 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
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-07-27 12:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-23  9:51 [Buildroot] [PATCH] Remove deprecated matchpathcon calls José Pekkarinen
2021-07-24 21:38 ` Thomas Petazzoni
     [not found]   ` <CAJPV9MpuxCHXRAf2zTeuZnHB1FjiwtJHA6-UxEvHFFJ8WWg4gw@mail.gmail.com>
2021-07-27 12:43     ` Thomas Petazzoni
2021-07-27 12:46       ` José Pekkarinen

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