Bug 15496 - auditd startup broken when coreutils is installed
Summary: auditd startup broken when coreutils is installed
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2023.02
Hardware: All Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-29 13:56 UTC by Jonathan Bittner
Modified: 2024-06-15 15:07 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bittner 2023-03-29 13:56:33 UTC
In the launch script /etc/init.d/S02auditd (buildroot/package/audit/S02auditd), line 23: 		mkdir -p /var/log/audit -Z `selabel_lookup -b file -k /var/log/audit | cut -d ' ' -f 3`

does not work when coreutils mkdir replaces the one supplied by busybox.  The -Z context needs to be placed before the directory name with coreutils and BusyBox will accept it both ways.

With coreutils, a folder is created with the name of the context in the current directory, auditd appears to start, appears in ps, but does no SELinux logging. Doing a restart will show an OK on stopping and a FAIL on starting.  Starting again shows an OK but no logging occurs.
Comment 1 Yann E. MORIN 2024-06-15 15:07:40 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!