initrc_selinux(8)
π NAME π
ok so <pink>initrc_selinux</pink> β that's your initrc_selinux(8) page bestie, welcome β is literally the Security Enhanced Linux Policy for the initrc processes. that's the whole vibe. the manual name is initrc_selinux and the policy it's describing is initrc. slay.
β¨ DESCRIPTION β¨
Security-Enhanced Linux secures the initrc processes via flexible mandatory access control. yeah. mandatory. not optional. it's giving "you WILL be confined" and honestly? iconic. π
The initrc processes execute with the initrc_t SELinux type. so if u ever wanna know whether these processes are running on ur box, u run the ps command with the -Z qualifier β that's the flag that shows the security context. easy.
For example:
ps -eZ | grep initrc_t
that's it. that's the whole check. grep for the type, see what shows up, go about ur day. π«Ά
π¦ ENTRYPOINTS π¦
okay so this is the big one. the initrc_t SELinux type can be entered via the following file types. there are... a LOT of them. like, a lot a lot. don't panic, just scroll. they're all here, every single one, no cap:
pki_ra_script_exec_tapcupsd_initrc_exec_thddtemp_initrc_exec_trpcd_initrc_exec_tamtu_initrc_exec_tgpm_initrc_exec_tglance_scrubber_initrc_exec_tsssd_initrc_exec_tarpwatch_initrc_exec_tglance_api_initrc_exec_tsysstat_initrc_exec_tl2tpd_initrc_exec_tboinc_initrc_exec_tfirewalld_initrc_exec_trabbitmq_initrc_exec_twatchdog_initrc_exec_tfsdaemon_initrc_exec_tfetchmail_initrc_exec_tgdomap_initrc_exec_tsaslauthd_initrc_exec_tbitlbee_initrc_exec_tpostgresql_initrc_exec_tsnmpd_initrc_exec_typbind_initrc_exec_tantivirus_initrc_exec_tpingd_initrc_exec_tlikewise_initrc_exec_tvdagentd_initrc_exec_tzoneminder_initrc_exec_tisnsd_initrc_exec_tcpuplug_initrc_exec_tavahi_initrc_exec_tshorewall_initrc_exec_tautomount_initrc_exec_tsnort_initrc_exec_tlircd_initrc_exec_tuucpd_initrc_exec_tmpd_initrc_exec_tcondor_initrc_exec_tcupsd_initrc_exec_tpostgrey_initrc_exec_tcfengine_initrc_exec_tconntrackd_initrc_exec_tinnd_initrc_exec_tnis_initrc_exec_tbacula_initrc_exec_tkismet_initrc_exec_tntop_initrc_exec_tpads_initrc_exec_twicked_initrc_exec_tcollectd_initrc_exec_tslpd_initrc_exec_tricci_initrc_exec_topenvpn_initrc_exec_tddclient_initrc_exec_tnslcd_initrc_exec_tNetworkManager_initrc_exec_tsensord_initrc_exec_tpcscd_initrc_exec_tauditd_initrc_exec_tmrtg_initrc_exec_tksmtuned_initrc_exec_tblkmapd_initrc_exec_thttpd_initrc_exec_tfoghorn_initrc_exec_ticecast_initrc_exec_tabrt_initrc_exec_tzebra_initrc_exec_tmemcached_initrc_exec_tnfsd_initrc_exec_tasterisk_initrc_exec_tbluetooth_initrc_exec_tchronyd_initrc_exec_tpsad_initrc_exec_tdovecot_initrc_exec_tnscd_initrc_exec_tirqbalance_initrc_exec_tsmokeping_initrc_exec_tminissdpd_initrc_exec_trwho_initrc_exec_ttgtd_initrc_exec_tpki_tps_script_exec_tkerberos_initrc_exec_tcrond_initrc_exec_tentropyd_initrc_exec_tmscan_initrc_exec_texim_initrc_exec_tqpidd_initrc_exec_tsetrans_initrc_exec_tpuppetagent_initrc_exec_tsamba_initrc_exec_ttcsd_initrc_exec_tsshd_initrc_exec_tspamd_initrc_exec_tkdump_initrc_exec_tportreserve_initrc_exec_tsyslogd_initrc_exec_tsquid_initrc_exec_tafs_initrc_exec_tcouchdb_initrc_exec_tsslh_initrc_exec_ttor_initrc_exec_tmon_statd_initrc_exec_tpolipo_initrc_exec_tdrbd_initrc_exec_tdhcpc_helper_exec_tinitrc_exec_tcyphesis_initrc_exec_tzabbix_initrc_exec_tjabberd_initrc_exec_tprelude_initrc_exec_tvarnishd_initrc_exec_tcgconfig_initrc_exec_tcallweaver_initrc_exec_tapmd_initrc_exec_tdictd_initrc_exec_tdenyhosts_initrc_exec_tsanlock_initrc_exec_trhnsd_initrc_exec_trhsmcertd_initrc_exec_trngd_initrc_exec_tportmap_initrc_exec_tlldpad_initrc_exec_tcobblerd_initrc_exec_tsblim_initrc_exec_tminidlna_initrc_exec_topenhpid_initrc_exec_thypervkvp_initrc_exec_tdhcpd_initrc_exec_trtkit_daemon_initrc_exec_tbin_tradiusd_initrc_exec_tpppd_initrc_exec_tiwhd_initrc_exec_tcgred_initrc_exec_tdlm_controld_initrc_exec_trpcbind_initrc_exec_tcyrus_initrc_exec_tclvmd_initrc_exec_tacct_initrc_exec_tpostfix_initrc_exec_tradvd_initrc_exec_tredis_initrc_exec_tcertmonger_initrc_exec_tglance_registry_initrc_exec_tzabbix_agent_initrc_exec_tpkcs_slotd_initrc_exec_tkeystone_initrc_exec_tmcelog_initrc_exec_toracleasm_initrc_exec_tuuidd_initrc_exec_tcanna_initrc_exec_tsendmail_initrc_exec_tsoundd_initrc_exec_tslapd_initrc_exec_tdspam_initrc_exec_tglusterd_initrc_exec_tmysqlmanagerd_initrc_exec_tcertmaster_initrc_exec_tusr_tsvnserve_initrc_exec_tciped_initrc_exec_tmunin_initrc_exec_twdmd_initrc_exec_tiodined_initrc_exec_tnamed_initrc_exec_tmdadm_initrc_exec_ttuned_initrc_exec_tdistccd_initrc_exec_tmysqld_initrc_exec_tvarnishlog_initrc_exec_troundup_initrc_exec_tcluster_initrc_exec_tfcoemon_initrc_exec_tshell_exec_tneutron_initrc_exec_tnagios_initrc_exec_tcvs_initrc_exec_tpuppetmaster_initrc_exec_tfail2ban_initrc_exec_tftpd_initrc_exec_tiptables_initrc_exec_tulogd_initrc_exec_tipsec_initrc_exec_tcmirrord_initrc_exec_tgpsd_initrc_exec_tvnstatd_initrc_exec_tmongod_initrc_exec_tctdbd_initrc_exec_tvirtd_initrc_exec_tccs_initrc_exec_tntpd_initrc_exec_tvirtlogd_initrc_exec_tosad_initrc_exec_tprivoxy_initrc_exec_tvhostmd_initrc_exec_tdnsmasq_initrc_exec_t
like?? that's 197 file types. 197!! my thumbs hurt just reading it. π but look at them, all cozy in a list, that's the content, we keep the content. π₯
The default entrypoint paths for the initrc_t domain are the following:
and finally the big one: all executables with the default executable label, usually chilling in /usr/bin and /usr/sbin β plus the entire guest list, which is honestly giving everyone's invited π
β¨:
/etc/rc.d/init.d/apcupsd
/etc/rc.d/init.d/hddtemp
/etc/rc.d/init.d/nfslock
/etc/rc.d/init.d/rpcidmapd
/etc/rc.d/init.d/amtu
/etc/rc.d/init.d/gpm
/etc/rc.d/init.d/openstack-glance-scrubber
/etc/rc.d/init.d/sssd
/etc/rc.d/init.d/arpwatch
/etc/rc.d/init.d/openstack-glance-api
/etc/rc.d/init.d/sysstat
/etc/rc.d/init.d/.*l2tpd
/etc/rc.d/init.d/boinc-client
/etc/rc.d/init.d/firewalld
/etc/rc.d/init.d/rabbitmq-server
/etc/rc.d/init.d/watchdog
/etc/rc.d/init.d/(smartd|smartmontools)
/etc/rc.d/init.d/fetchmail
/etc/rc.d/init.d/gdomap
/etc/rc.d/init.d/sasl
/etc/rc.d/init.d/bitlbee
/etc/rc.d/init.d/(se)?postgresql
/usr/share/postgresql/postgresql-script
/etc/rc.d/init.d/(snmpd|snmptrapd)
/etc/rc.d/init.d/ypbind
/etc/rc.d/init.d/clamd.*
/etc/rc.d/init.d/amavis
/etc/rc.d/init.d/amavisd-snmp
/etc/rc.d/init.d/whatsup-pingd
/etc/rc.d/init.d/lwiod
/etc/rc.d/init.d/lwsmd
/etc/rc.d/init.d/lsassd
/etc/rc.d/init.d/lwregd
/etc/rc.d/init.d/dcerpcd
/etc/rc.d/init.d/srvsvcd
/etc/rc.d/init.d/likewise
/etc/rc.d/init.d/eventlogd
/etc/rc.d/init.d/netlogond
/etc/rc.d/init.d/spice-vdagentd
/etc/rc.d/init.d/zoneminder
/etc/rc.d/init.d/isnsd
/etc/rc.d/init.d/cpuplugd
/etc/rc.d/init.d/avahi.*
/etc/rc.d/init.d/shorewall.*
/etc/rc.d/init.d/autofs
/etc/rc.d/init.d/snortd
/etc/rc.d/init.d/lirc
/etc/rc.d/init.d/uucp
/etc/rc.d/init.d/mpd
/etc/rc.d/init.d/condor
/etc/rc.d/init.d/cups
/etc/rc.d/init.d/postgrey
/etc/rc.d/init.d/((cf-serverd)|(cf-monitord)|(cf-execd))
/etc/rc.d/init.d/innd
/etc/rc.d/init.d/ypserv
/etc/rc.d/init.d/ypxfrd
/etc/rc.d/init.d/yppasswd
/etc/rc.d/init.d/bacula.*
/etc/rc.d/init.d/kismet.*
/etc/rc.d/init.d/ntop
/etc/rc.d/init.d/pads
/usr/bin/rcwicked.*
/etc/rc.d/init.d/collectd
/etc/rc.d/init.d/slpd
/etc/rc.d/init.d/ricci
/etc/rc.d/init.d/openvpn
/etc/rc.d/init.d/ddclient
/etc/rc.d/init.d/nslcd
/etc/rc.d/init.d/wicd
/etc/rc.d/init.d/sensord
/etc/rc.d/init.d/pcscd
/etc/rc.d/init.d/auditd
/etc/rc.d/init.d/mrtg
/etc/rc.d/init.d/ksmtuned
/etc/rc.d/init.d/blkmapd
/etc/init.d/cherokee
/etc/rc.d/init.d/httpd
/usr/bin/start_apache2
/etc/rc.d/init.d/lighttpd
/etc/rc.d/init.d/icecast
/etc/rc.d/init.d/abrt
/etc/rc.d/init.d/bgpd
/etc/rc.d/init.d/ripd
/etc/rc.d/init.d/isisd
/etc/rc.d/init.d/ospfd
/etc/rc.d/init.d/zebra
/etc/rc.d/init.d/babeld
/etc/rc.d/init.d/ospf6d
/etc/rc.d/init.d/ripngd
/etc/rc.d/init.d/memcached
/etc/rc.d/init.d/nfs
/etc/rc.d/init.d/asterisk
/etc/rc.d/init.d/dund
/etc/rc.d/init.d/pand
/etc/rc.d/init.d/bluetooth
/etc/rc.d/init.d/chronyd
/etc/rc.d/init.d/psad
/etc/rc.d/init.d/dovecot
/etc/rc.d/init.d/nscd
/etc/rc.d/init.d/irqbalance
/etc/rc.d/init.d/smokeping
/etc/rc.d/init.d/minissdpd
/etc/rc.d/init.d/rwhod
/etc/rc.d/init.d/tgtd
/etc/rc.d/init.d/kprop
/etc/rc.d/init.d/kadmind
/etc/rc.d/init.d/krb524d
/etc/rc.d/init.d/krb5kdc
/etc/rc.d/init.d/atd
/etc/rc.d/init.d/((audio-entropyd)|(haveged))
/etc/rc.d/init.d/MailScanner
/etc/rc.d/init.d/exim
/etc/rc.d/init.d/qpidd
/etc/rc.d/init.d/mcstrans
/etc/rc.d/init.d/puppet
/etc/rc.d/init.d/nmb
/etc/rc.d/init.d/smb
/etc/rc.d/init.d/winbind
/etc/rc.d/init.d/(tcsd|trousers)
/etc/rc.d/init.d/sshd
/etc/rc.d/init.d/mimedefang.*
/etc/rc.d/init.d/spamd
/etc/rc.d/init.d/pyzord
/etc/rc.d/init.d/spampd
/etc/rc.d/init.d/kdump
/etc/rc.d/init.d/portreserve
/etc/rc.d/init.d/rsyslog
/etc/rc.d/init.d/squid
/etc/rc.d/init.d/(open)?afs
/etc/rc.d/init.d/openafs-client
/etc/rc.d/init.d/couchdb
/etc/rc.d/init.d/sslh
/etc/rc.d/init.d/tor
/etc/rc.d/init.d/mon_statd
/etc/rc.d/init.d/polipo
/etc/rc.d/init.d/drbd
/etc/firestarter/firestarter.sh
/etc/init.d/.*
/etc/rc.d/rc.[^/]+
/etc/rc.d/init.d/.*
/opt/nfast/sbin/init.d-ncipher
/usr/libexec/dcc/stop-.*
/usr/libexec/dcc/start-.*
/usr/lib/systemd/fedora[^/]*
/opt/nfast/scripts/init.d/(.*)
/etc/rc.d/rc
/etc/X11/prefdm
/usr/bin/startx
/usr/bin/sepg_ctl
/usr/bin/start-dirsrv
/usr/bin/open_init_pty
/usr/bin/restart-dirsrv
/etc/sysconfig/network-scripts/ifup-ipsec
/usr/share/system-config-services/system-config-services-mechanism.py
/etc/rc.d/init.d/cyphesis
/etc/rc.d/init.d/(zabbix|zabbix-server)
/etc/rc.d/init.d/jabberd
/etc/rc.d/init.d/prelude-lml
/etc/rc.d/init.d/prelude-manager
/etc/rc.d/init.d/prelude-correlator
/etc/rc.d/init.d/varnish
/etc/rc.d/init.d/cgconfig
/etc/rc.d/init.d/callweaver
/etc/rc.d/init.d/acpid
/etc/rc.d/init.d/dictd
/etc/rc.d/init.d/denyhosts
/etc/rc.d/init.d/sanlock
/etc/rc.d/init.d/rhnsd
/etc/rc.d/init.d/rhsmcertd
/etc/rc.d/init.d/rngd
/etc/rc.d/init.d/portmap
/etc/rc.d/init.d/lldpad
/etc/rc.d/init.d/cobblerd
/etc/rc.d/init.d/gatherer
/etc/rc.d/init.d/sblim-sfcbd
/etc/rc.d/init.d/minidlna
/etc/rc.d/init.d/openhpid
/etc/rc.d/init.d/hypervkvpd
/etc/rc.d/init.d/dhcpd(6)?
/etc/rc.d/init.d/dhcrelay(6)?
/etc/rc.d/init.d/rtkit-daemon
/etc/rc.d/init.d/radiusd
/etc/ppp/(auth|ip(v6|x)?)-(up|down)
/usr/libexec/ppp/(auth|ip(v6|x)?)-(up|down)
/etc/rc.d/init.d/ppp
/etc/rc.d/init.d/iwhd
/etc/rc.d/init.d/cgred
/etc/rc.d/init.d/rpcbind
/etc/rc.d/init.d/cyrus.*
/etc/rc.d/init.d/psacct
/etc/rc.d/init.d/postfix
/etc/rc.d/init.d/radvd
/etc/rc.d/init.d/redis
/etc/rc.d/init.d/certmonger
/etc/rc.d/init.d/openstack-glance-registry
/etc/rc.d/init.d/zabbix-agentd
/etc/rc.d/init.d/pkcsslotd
/etc/rc.d/init.d/openstack-keystone
/etc/rc.d/init.d/mcelog
/etc/rc.d/init.d/oracleasm
/etc/rc.d/init.d/uuidd
/etc/rc.d/init.d/canna
/etc/mail/system/sm-client.pre
/etc/rc.d/init.d/sendmail
/etc/rc.d/init.d/nasd
/etc/rc.d/init.d/slapd
/etc/rc.d/init.d/dspam
/etc/rc.d/init.d/gluster.*
/usr/bin/glusterd
/etc/rc.d/init.d/mysqlmanager
/etc/rc.d/init.d/certmaster
/opt/.*
/usr/.*
/hana(/.*)?
/emul/.*
/export(/.*)?
/ostree(/.*)?
/usr/doc(/.*)?/lib(/.*)?
/usr/inclu.e(/.*)?
/usr/share/rpm(/.*)?
/usr/share/doc(/.*)?/README.*
/usr/lib/modules(/.*)/vmlinuz
/usr/lib/modules(/.*)/sysctl.conf
/usr/lib/modules(/.*)/initramfs.img
/usr/lib/sysimage(/.*)?
/usr/lib/ostree-boot(/.*)?
/opt
/usr
/emul
/etc/rc.d/init.d/svnserve
/etc/rc.d/init.d/ciped.*
/etc/rc.d/init.d/munin-node
/etc/rc.d/init.d/wdmd
/etc/rc.d/init.d/((iodined)|(iodine-server))
/etc/rc.d/init.d/named
/etc/rc.d/init.d/unbound
/etc/rc.d/init.d/named-sdb
/etc/rc.d/init.d/mdmonitor
/etc/rc.d/init.d/tuned
/etc/rc.d/init.d/distccd
/etc/rc.d/init.d/mysqld
/etc/rc.d/init.d/varnishlog
/etc/rc.d/init.d/varnishncsa
/etc/rc.d/init.d/roundup
/etc/rc.d/init.d/openais
/etc/rc.d/init.d/corosync
/etc/rc.d/init.d/cpglockd
/etc/rc.d/init.d/heartbeat
/etc/rc.d/init.d/pacemaker
/etc/rc.d/init.d/rgmanager
/etc/rc.d/init.d/fcoe
/usr/bin/d?ash
/usr/bin/ksh.*
/usr/bin/zsh.*
/usr/bin/esh
/usr/bin/bash
/usr/bin/fish
/usr/bin/mksh
/usr/bin/sash
/usr/bin/sesh
/usr/bin/tcsh
/usr/bin/yash
/usr/bin/bash2
/usr/bin/smrsh
/usr/bin/nologin
/usr/bin/scponly
/usr/bin/scponlyc
/usr/libexec/sesh
/usr/bin/git-shell
/usr/libexec/sudo/sesh
/usr/bin/cockpit-bridge
/usr/libexec/cockpit-agent
/usr/libexec/git-core/git-shell
/etc/rc.d/init.d/neutron.*
/etc/rc.d/init.d/quantum.*
/etc/rc.d/init.d/nrpe
/etc/rc.d/init.d/nagios
/etc/rc.d/init.d/cvs
/etc/rc.d/init.d/puppetmaster
/etc/rc.d/init.d/vsftpd
/etc/rc.d/init.d/proftpd
/etc/rc.d/init.d/ip6?tables
/etc/rc.d/init.d/ebtables
/etc/rc.d/init.d/nftables
/etc/rc.d/init.d/ulogd
/etc/rc.d/init.d/ipsec
/etc/rc.d/init.d/racoon
/etc/rc.d/init.d/strongswan
/etc/rc.d/init.d/cmirrord
/etc/rc.d/init.d/gpsd
/etc/rc.d/init.d/vnstat
/etc/rc.d/init.d/mongod
/etc/rc.d/init.d/mongos
/etc/rc.d/init.d/ctdb
/etc/rc.d/init.d/libvirtd
/etc/rc.d/init.d/((ccs)|(ccsd))
/etc/rc.d/init.d/ntpd
/etc/rc.d/init.d/virtlogd
/etc/rc.d/init.d/osad
/etc/rc.d/init.d/privoxy
/etc/rc.d/init.d/vhostmd
/etc/rc.d/init.d/dnsmasq
okay that was a lot, drink some water bestie π«Ά
β¨ PROCESS TYPES β¨
okay so this is the part where SELinux gets β¨organizedβ¨. it defines process types (aka domains) for each process running on the system. every single one. no cap.
you can literally peek at the context of a process using the -Z option to ps π
policy governs the access that confined processes have to files. and here's the slay: SELinux initrc policy is very flexible, allowing users to set up their initrc processes in as secure a method as possible. like, locked in but not annoying about it π
the following process types are defined for initrc:
initrc_tβ the one and only π
Note:semanage permissive -a initrc_tcan be used to make the process typeinitrc_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so you get the receipts either way, bestie π§Ύβ¨
π BOOLEANS π
SELinux policy is customizable based on least access required β very demure, very mindful. initrc policy is extremely flexible and has several booleans that allow you to manipulate the policy and run initrc with the tightest access possible ππ
deny_execmem
if you want to deny user domains applications to map a memory region as both executable and writableβ¦ girl. this is dangerous π¨ and the executable should be reported in bugzilla. you must turn on the deny_execmem boolean.
Disabled by default.
setsebool -P deny_execmem 1
mmap_low_allowed
if you want to control the ability to mmap a low area of the address space, as configured by /proc/sys/vm/mmap_min_addr, you must turn on the mmap_low_allowed boolean.
Disabled by default.
setsebool -P mmap_low_allowed 1
nis_enabled
if you want to allow system to run with NIS, you must turn on the nis_enabled boolean.
Disabled by default.
setsebool -P nis_enabled 1
secure_mode_insmod
if you want to disable kernel module loading, you must turn on the secure_mode_insmod boolean.
Disabled by default.
setsebool -P secure_mode_insmod 1
selinuxuser_execheap
if you want to allow unconfined executables to make their heap memory executableβ¦ doing this is a really bad idea π probably indicates a badly coded executable, but could indicate an attack. this executable should be reported in bugzilla. you must turn on the selinuxuser_execheap boolean.
Disabled by default.
setsebool -P selinuxuser_execheap 1
selinuxuser_execstack
if you want to allow unconfined executables to make their stack executableβ¦ this should never, ever be necessary π probably indicates a badly coded executable, but could indicate an attack. this executable should be reported in bugzilla. you must turn on the selinuxuser_execstack boolean.
Disabled by default.
setsebool -P selinuxuser_execstack 1
bestie if you're turning either of those last two on for a reason, that reason is a bug report π«Ά report it
π¦ MANAGED FILES π¦
the SELinux process type initrc_t can manage files labeled with the following file types. the paths listed are the default paths for these file types π
Note: the process's UID still needs to have DAC permissions. SELinux isn't out here overriding your normal perms, it's just doing its own vibe check on top ππ
file_typeβ all files on the system
all files on the system
FILE CONTEXTS π
SELinux is literally built on files having an extended attribute that defines the file type, bestie β no cap.
You can see the context of a file using the -Z option to ls β¨
Policy governs the access confined processes have to these files. SELinux initrc policy is very flexible, allowing users to setup their initrc processes in as secure a method as possible. π«Ά
STANDARD FILE CONTEXT π
SELinux defines the file context types for the initrc. If you wanted to store files with these types in different paths, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk. π
semanage fcontext -a -t initrc_exec_t '/srv/initrc/content(/.*)?'
restorecon -R -v /srv/myinitrc_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. π¦
The following file types are defined for initrc:
πΈ initrc_devpts_t πΈ
- Set files with the
initrc_devpts_ttype, if you want to treat the files as initrc devpts data.
π₯ initrc_exec_t π₯
- Set files with the
initrc_exec_ttype, if you want to transition an executable to theinitrc_tdomain.
Paths:
/etc/init.d/.*, /etc/rc.d/rc.[^/]+, /etc/rc.d/init.d/.*,
/opt/nfast/sbin/init.d-ncipher, /usr/libexec/dcc/stop-.*,
/usr/libexec/dcc/start-.*, /usr/lib/systemd/fedora[^/]*,
/opt/nfast/scripts/init.d/(.*), /etc/rc.d/rc, /etc/X11/prefdm,
/usr/bin/startx, /usr/bin/sepg_ctl, /usr/bin/start-dirsrv,
/usr/bin/open_init_pty, /usr/bin/restart-dirsrv,
/etc/sysconfig/network-scripts/ifup-ipsec,
/usr/share/system-config-services/system-config-services-mechanism.py
π initrc_state_t π
- Set files with the
initrc_state_ttype, if you want to treat the files as initrc state data.
π initrc_tmp_t π
- Set files with the
initrc_tmp_ttype, if you want to store initrc temporary files in the/tmpdirectories.
β initrc_var_log_t β
- Set files with the
initrc_var_log_ttype, if you want to treat the data as initrc var log data, usually stored under the/var/logdirectory.
π¦ initrc_var_run_t π¦
- Set files with the
initrc_var_run_ttype, if you want to store the initrc files under the/runor/var/rundirectory.
Paths:
/run/sysconfig(/.*)?, /run/utmp, /run/keymap, /run/numlock-on,
/run/setleds-on, /run/runlevel.dir, /run/setmixer_flag,
/run/bootsplashctl
Note: File context can be temporarily modified with thechconcommand. If you want to permanently change the file context you need to use thesemanage fcontextcommand. This will modify the SELinux labeling database. You will need to userestoreconto apply the labels. π
COMMANDS π»
semanage fcontextcan also be used to manipulate default file context mappings.semanage permissivecan also be used to manipulate whether or not a process type is permissive.semanage modulecan also be used to enable/disable/install/remove policy modules.semanage booleancan also be used to manipulate the booleanssystem-config-selinuxis a GUI tool available to customize SELinux policy settings.
AUTHOR βοΈ
This manual page was auto-generated using sepolicy manpage .
SEE ALSO π
Mwah π β this whole vibe is from the initrc page, source/version initrc_selinux(8), dated 26-10-06. Catch you in the group chat, bestie! π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: selinux-policy-doc 20250627+git412.dbf877ab7-160000.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms