Skip to content

Commit

Permalink
label dnf5 as rpm_exec_t
Browse files Browse the repository at this point in the history
with DNF version 5, the binary went from being named dnf-3 to dnf5 (no
hyphen); dnf-4 is a symlink to dnf-3 and so just gets bin_t

Signed-off-by: Michael Snook <[email protected]>
  • Loading branch information
sgtsnookums committed Feb 11, 2025
1 parent 5206d8c commit b455174
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions policy/modules/admin/rpm.fc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
/usr/bin/bcfg2 -- gen_context(system_u:object_r:rpm_exec_t,s0)
/usr/bin/debuginfo-install -- gen_context(system_u:object_r:debuginfo_exec_t,s0)
/usr/bin/dnf -- gen_context(system_u:object_r:rpm_exec_t,s0)
/usr/bin/dnf-[0-9]+ -- gen_context(system_u:object_r:rpm_exec_t,s0)
/usr/bin/dnf-3 -- gen_context(system_u:object_r:rpm_exec_t,s0)
/usr/bin/dnf5 -- gen_context(system_u:object_r:rpm_exec_t,s0)
/usr/bin/dnf-automatic -- gen_context(system_u:object_r:rpm_exec_t,s0)
/usr/bin/dnf-automatic-[0-9]+ -- gen_context(system_u:object_r:rpm_exec_t,s0)
/usr/bin/dnf-automatic-?[0-9]+ -- gen_context(system_u:object_r:rpm_exec_t,s0)
/usr/bin/fedora-rmdevelrpms -- gen_context(system_u:object_r:rpm_exec_t,s0)
/usr/bin/online_update -- gen_context(system_u:object_r:rpm_exec_t,s0)
/usr/bin/packagekitd -- gen_context(system_u:object_r:rpm_exec_t,s0)
Expand Down

0 comments on commit b455174

Please sign in to comment.