Skip to content

Commit

Permalink
files context for merged-usr profile on gentoo
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Filo <[email protected]>
  • Loading branch information
plsph committed May 6, 2024
1 parent 6507eeb commit b577962
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions policy/modules/admin/netutils.fc
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
/usr/sbin/send_arp -- gen_context(system_u:object_r:ping_exec_t,s0)
/usr/sbin/tcpdump -- gen_context(system_u:object_r:netutils_exec_t,s0)
/usr/sbin/traceroute.* -- gen_context(system_u:object_r:traceroute_exec_t,s0)

ifdef(`distro_gentoo',`
/usr/bin/iftop -- gen_context(system_u:object_r:netutils_exec_t,s0)
')
5 changes: 5 additions & 0 deletions policy/modules/admin/shutdown.fc
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@
/usr/sbin/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0)

/run/shutdown\.pid -- gen_context(system_u:object_r:shutdown_runtime_t,s0)

ifdef(`distro_gentoo',`
/usr/bin/halt -- gen_context(system_u:object_r:shutdown_exec_t,s0)
/usr/bin/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0)
')
4 changes: 4 additions & 0 deletions policy/modules/services/smartmon.fc
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
/run/smartd\.pid -- gen_context(system_u:object_r:fsdaemon_runtime_t,s0)

/var/lib/smartmontools(/.*)? gen_context(system_u:object_r:fsdaemon_var_lib_t,s0)

ifdef(`distro_gentoo',`
/usr/bin/update-smart-drivedb -- gen_context(system_u:object_r:smartmon_update_drivedb_exec_t,s0)
')
3 changes: 3 additions & 0 deletions policy/modules/system/authlogin.fc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ ifdef(`distro_redhat', `
ifdef(`distro_suse', `
/usr/sbin/unix2_chkpwd -- gen_context(system_u:object_r:chkpwd_exec_t,s0)
')
ifdef(`distro_gentoo',`
/usr/bin/pwhistory_helper -- gen_context(system_u:object_r:updpwd_exec_t,s0)
')

/var/cache/coolkey(/.*)? gen_context(system_u:object_r:auth_cache_t,s0)

Expand Down
4 changes: 4 additions & 0 deletions policy/modules/system/init.fc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ ifdef(`distro_gentoo', `
/usr/lib/rc/cache(/.*)? gen_context(system_u:object_r:initrc_state_t,s0)
/usr/lib/rc/console(/.*)? gen_context(system_u:object_r:initrc_state_t,s0)
/usr/lib/rc/init\.d(/.*)? gen_context(system_u:object_r:initrc_state_t,s0)
/usr/bin/rc -- gen_context(system_u:object_r:rc_exec_t,s0)
/usr/bin/openrc -- gen_context(system_u:object_r:rc_exec_t,s0)
/usr/bin/openrc-init -- gen_context(system_u:object_r:init_exec_t,s0)
/usr/bin/openrc-shutdown -- gen_context(system_u:object_r:init_exec_t,s0)
/usr/sbin/rc -- gen_context(system_u:object_r:rc_exec_t,s0)
/usr/sbin/openrc -- gen_context(system_u:object_r:rc_exec_t,s0)
/usr/sbin/openrc-init -- gen_context(system_u:object_r:init_exec_t,s0)
Expand Down
3 changes: 3 additions & 0 deletions policy/modules/system/lvm.fc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# /usr
#
/usr/bin/cryptsetup -- gen_context(system_u:object_r:lvm_exec_t,s0)
ifdef(`distro_gentoo',`
/usr/bin/dmeventd -- gen_context(system_u:object_r:lvm_exec_t,s0)
')
/usr/bin/dmraid -- gen_context(system_u:object_r:lvm_exec_t,s0)
/usr/bin/dmsetup -- gen_context(system_u:object_r:lvm_exec_t,s0)
/usr/bin/dmsetup\.static -- gen_context(system_u:object_r:lvm_exec_t,s0)
Expand Down

0 comments on commit b577962

Please sign in to comment.