package/audit: replace deprecated matchpathcon calls from init script
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 <jose.pekkarinen@unikie.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 90dd1d6178b01f6da3e59e43d0c7efdf984a72d8) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
8e5db811fc
commit
85a83452c1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user