forked from eclipse-bluechi/bluechi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relates to: eclipse-bluechi#883 When enforcing the SELinux policy of BlueChi, the calls from bluechi-agent to systemd are blocked. The missing privileges of bluechi_agent_t (source context) on the systemd types (e.g. systemd_unit_file_t) and init type have been added. Signed-off-by: Michael Engel <mengel@redhat.com>
- Loading branch information
Showing
2 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
- bluechictl stop | ||
type=USER_AVC | ||
msg=audit(1725631488.897:292): | ||
pid=1 | ||
uid=0 | ||
auid=4294967295 | ||
ses=4294967295 | ||
subj=system_u:system_r:init_t:s0 | ||
msg=' | ||
avc: denied { stop } for auid=n/a uid=0 gid=0 path="/etc/systemd/system/simple.service" | ||
cmdline="" | ||
function="bus_unit_method_start_generic" | ||
scontext=system_u:system_r:bluechi_agent_t:s0 | ||
tcontext=unconfined_u:object_r:systemd_unit_file_t:s0 | ||
tclass=service | ||
permissive=0 | ||
exe="/usr/lib/systemd/systemd" | ||
sauid=0 hostname=? addr=? terminal=?' | ||
|
||
- bluechictl start | ||
type=USER_AVC | ||
msg=audit(1725632371.424:293): | ||
pid=1 | ||
uid=0 | ||
auid=4294967295 | ||
ses=4294967295 | ||
subj=system_u:system_r:init_t:s0 | ||
msg=' | ||
avc: denied { start } for auid=n/a uid=0 gid=0 path="/etc/systemd/system/simple.service" | ||
cmdline="" | ||
function="bus_unit_method_start_generic" | ||
scontext=system_u:system_r:bluechi_agent_t:s0 | ||
tcontext=unconfined_u:object_r:systemd_unit_file_t:s0 | ||
tclass=service | ||
permissive=0 | ||
exe="/usr/lib/systemd/systemd" | ||
sauid=0 hostname=? addr=? terminal=?'UID="root" AUID="unset" AUID="root" UID="root" GID="root" SAUID="root" | ||
|
||
- bluechictl freeze | ||
type=USER_AVC msg=audit(1725632546.949:294): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { stop } for auid=n/a uid=0 gid=0 path="/etc/systemd/system/simple.service" cmdline="" function="bus_unit_method_freezer_generic" scontext=system_u:system_r:bluechi_agent_t:s0 tcontext=unconfined_u:object_r:systemd_unit_file_t:s0 tclass=service permissive=0 exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'UID="root" AUID="unset" AUID="root" UID="root" GID="root" SAUID="root" |