Skip to content

Commit

Permalink
Change /usr/sbin entries to use /usr/bin or remove them
Browse files Browse the repository at this point in the history
This is a follow up to commit 1be14f9 ("Alias /usr/sbin to /usr/bin
and change all /usr/sbin paths to /usr/bin") for entries which were
kind-of hidden and either duplicate or unnecessary obfuscated, or
were added later mistakenly,
  • Loading branch information
zpytela committed Jan 9, 2025
1 parent cdfbe79 commit 3314785
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions policy/modules/contrib/kerberos.fc
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ HOME_DIR/\.k5users -- gen_context(system_u:object_r:krb5_home_t,s0)
/etc/rc\.d/init\.d/krb5kdc -- gen_context(system_u:object_r:kerberos_initrc_exec_t,s0)

/usr/bin/krb5kdc -- gen_context(system_u:object_r:krb5kdc_exec_t,s0)
/usr/(kerberos/)?sbin/krb5kdc -- gen_context(system_u:object_r:krb5kdc_exec_t,s0)
/usr/kerberos/sbin/krb5kdc -- gen_context(system_u:object_r:krb5kdc_exec_t,s0)
/usr/bin/kadmind -- gen_context(system_u:object_r:kadmind_exec_t,s0)
/usr/(kerberos/)?sbin/kadmind -- gen_context(system_u:object_r:kadmind_exec_t,s0)
/usr/kerberos/sbin/kadmind -- gen_context(system_u:object_r:kadmind_exec_t,s0)
/usr/bin/\_kadmind -- gen_context(system_u:object_r:kadmind_exec_t,s0)
/usr/(kerberos/)?sbin/\_kadmind -- gen_context(system_u:object_r:kadmind_exec_t,s0)
/usr/kerberos/sbin/\_kadmind -- gen_context(system_u:object_r:kadmind_exec_t,s0)
/usr/kerberos/sbin/kadmin\.local -- gen_context(system_u:object_r:kadmind_exec_t,s0)
/usr/kerberos/sbin/kpropd -- gen_context(system_u:object_r:kpropd_exec_t,s0)
/usr/bin/kpropd -- gen_context(system_u:object_r:kpropd_exec_t,s0)
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/contrib/ktls.fc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/usr/sbin/tlshd -- gen_context(system_u:object_r:ktlshd_exec_t,s0)
/usr/bin/tlshd -- gen_context(system_u:object_r:ktlshd_exec_t,s0)
12 changes: 6 additions & 6 deletions policy/modules/contrib/openshift.fc
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
/var/log/mcollective\.log.* -- gen_context(system_u:object_r:openshift_log_t,s0)
/var/log/openshift(/.*)? gen_context(system_u:object_r:openshift_log_t,s0)

/usr/s?bin/(oo|rhc)-cgroup-read -- gen_context(system_u:object_r:openshift_cgroup_read_exec_t,s0)
/usr/bin/(oo|rhc)-cgroup-read -- gen_context(system_u:object_r:openshift_cgroup_read_exec_t,s0)

/usr/s?bin/oo-lists-ports -- gen_context(system_u:object_r:openshift_net_read_exec_t,s0)
/usr/bin/oo-lists-ports -- gen_context(system_u:object_r:openshift_net_read_exec_t,s0)

/usr/s?bin/(oo|rhc)-restorer -- gen_context(system_u:object_r:openshift_initrc_exec_t,s0)
/usr/s?bin/(oo|rhc)-restorer-wrapper.sh -- gen_context(system_u:object_r:openshift_initrc_exec_t,s0)
/usr/s?bin/oo-admin-ctl-gears -- gen_context(system_u:object_r:openshift_initrc_exec_t,s0)
/usr/s?bin/mcollectived -- gen_context(system_u:object_r:openshift_initrc_exec_t,s0)
/usr/bin/(oo|rhc)-restorer -- gen_context(system_u:object_r:openshift_initrc_exec_t,s0)
/usr/bin/(oo|rhc)-restorer-wrapper.sh -- gen_context(system_u:object_r:openshift_initrc_exec_t,s0)
/usr/bin/oo-admin-ctl-gears -- gen_context(system_u:object_r:openshift_initrc_exec_t,s0)
/usr/bin/mcollectived -- gen_context(system_u:object_r:openshift_initrc_exec_t,s0)

/run/stickshift(/.*)? gen_context(system_u:object_r:openshift_var_run_t,s0)
/run/openshift(/.*)? gen_context(system_u:object_r:openshift_var_run_t,s0)
2 changes: 1 addition & 1 deletion policy/modules/contrib/pcm.fc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/usr/sbin/pcm-sensor-server -- gen_context(system_u:object_r:pcmsensor_exec_t,s0)
/usr/bin/pcm-sensor-server -- gen_context(system_u:object_r:pcmsensor_exec_t,s0)

0 comments on commit 3314785

Please sign in to comment.