selinux-policy/targeted/file_contexts/program/initrc.fc
2005-10-21 18:05:21 +00:00

49 lines
2.1 KiB
Plaintext

# init rc scripts
ifdef(`targeted_policy', `
/etc/X11/prefdm -- system_u:object_r:bin_t:s0
', `
/etc/X11/prefdm -- system_u:object_r:initrc_exec_t:s0
')
/etc/rc\.d/rc -- system_u:object_r:initrc_exec_t:s0
/etc/rc\.d/rc\.sysinit -- system_u:object_r:initrc_exec_t:s0
/etc/rc\.d/rc\.local -- system_u:object_r:initrc_exec_t:s0
/etc/rc\.d/init\.d/.* -- system_u:object_r:initrc_exec_t:s0
/etc/rc\.d/init\.d/functions -- system_u:object_r:etc_t:s0
/etc/init\.d/.* -- system_u:object_r:initrc_exec_t:s0
/etc/init\.d/functions -- system_u:object_r:etc_t:s0
/var/run/utmp -- system_u:object_r:initrc_var_run_t:s0
/var/run/runlevel\.dir system_u:object_r:initrc_var_run_t:s0
/var/run/random-seed -- system_u:object_r:initrc_var_run_t:s0
/var/run/setmixer_flag -- system_u:object_r:initrc_var_run_t:s0
ifdef(`distro_suse', `
/var/run/sysconfig(/.*)? system_u:object_r:initrc_var_run_t:s0
/var/run/keymap -- system_u:object_r:initrc_var_run_t:s0
/var/run/numlock-on -- system_u:object_r:initrc_var_run_t:s0
/var/run/setleds-on -- system_u:object_r:initrc_var_run_t:s0
/var/run/bootsplashctl -p system_u:object_r:initrc_var_run_t:s0
/etc/init\.d/\.depend.* -- system_u:object_r:etc_runtime_t:s0
')
ifdef(`distro_gentoo', `
/sbin/rc -- system_u:object_r:initrc_exec_t:s0
/sbin/runscript -- system_u:object_r:initrc_exec_t:s0
/sbin/runscript\.sh -- system_u:object_r:initrc_exec_t:s0
/var/lib/init\.d(/.*)? system_u:object_r:initrc_state_t:s0
')
# run_init
/usr/sbin/run_init -- system_u:object_r:run_init_exec_t:s0
/usr/sbin/open_init_pty -- system_u:object_r:initrc_exec_t:s0
/etc/nologin.* -- system_u:object_r:etc_runtime_t:s0
/etc/nohotplug -- system_u:object_r:etc_runtime_t:s0
ifdef(`distro_redhat', `
/halt -- system_u:object_r:etc_runtime_t:s0
/fastboot -- system_u:object_r:etc_runtime_t:s0
/fsckoptions -- system_u:object_r:etc_runtime_t:s0
/forcefsck -- system_u:object_r:etc_runtime_t:s0
/poweroff -- system_u:object_r:etc_runtime_t:s0
/\.autofsck -- system_u:object_r:etc_runtime_t:s0
/\.autorelabel -- system_u:object_r:etc_runtime_t:s0
')