[Buildroot] [PATCH] Remove deprecated matchpathcon calls
José Pekkarinen
jose.pekkarinen at unikie.com
Fri Jul 23 09:51:13 UTC 2021
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 at 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
More information about the buildroot
mailing list