Skip to content

Commit

Permalink
Allow snapperd execute systemctl in the caller domain
Browse files Browse the repository at this point in the history
The commit addresses the following AVC denial:
type=AVC msg=audit(1738151778.369:679): avc:  denied  { execute_no_trans } for  pid=5390 comm="snapperd" path="/usr/bin/systemctl" dev="nvme0n1p7" ino=368840 scontext=system_u:system_r:snapperd_t:s0 tcontext=system_u:object_r:systemd_systemctl_exec_t:s0 tclass=file permissive=0

Resolves: rhbz#2342778
  • Loading branch information
zpytela committed Jan 31, 2025
1 parent 6e44e3d commit 3dbb3d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions policy/modules/contrib/snapper.te
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,7 @@ optional_policy(`
optional_policy(`
snapper_relabel_snapshots(snapperd_t)
')

optional_policy(`
systemd_exec_systemctl(snapperd_t)
')

0 comments on commit 3dbb3d2

Please sign in to comment.