1initrc_selinux(8) SELinux Policy initrc initrc_selinux(8)
2
3
4
6 initrc_selinux - Security Enhanced Linux Policy for the initrc pro‐
7 cesses
8
10 Security-Enhanced Linux secures the initrc processes via flexible
11 mandatory access control.
12
13 The initrc processes execute with the initrc_t SELinux type. You can
14 check if you have these processes running by executing the ps command
15 with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep initrc_t
20
21
22
24 The initrc_t SELinux type can be entered via the mscan_initrc_exec_t,
25 mysqlmanagerd_initrc_exec_t, fetchmail_initrc_exec_t, rabbitmq_ini‐
26 trc_exec_t, afs_initrc_exec_t, ypbind_initrc_exec_t, chronyd_ini‐
27 trc_exec_t, isnsd_initrc_exec_t, saslauthd_initrc_exec_t, postfix_ini‐
28 trc_exec_t, acct_initrc_exec_t, auditd_initrc_exec_t, puppetagent_ini‐
29 trc_exec_t, lircd_initrc_exec_t, shell_exec_t, callweaver_ini‐
30 trc_exec_t, condor_initrc_exec_t, lldpad_initrc_exec_t, gpsd_ini‐
31 trc_exec_t, cgred_initrc_exec_t, roundup_initrc_exec_t, ctdbd_ini‐
32 trc_exec_t, dictd_initrc_exec_t, mrtg_initrc_exec_t, postgresql_ini‐
33 trc_exec_t, l2tpd_initrc_exec_t, cvs_initrc_exec_t, bluetooth_ini‐
34 trc_exec_t, hddtemp_initrc_exec_t, cupsd_initrc_exec_t, ntop_ini‐
35 trc_exec_t, openvpn_initrc_exec_t, squid_initrc_exec_t, iptables_ini‐
36 trc_exec_t, canna_initrc_exec_t, tor_initrc_exec_t, privoxy_ini‐
37 trc_exec_t, antivirus_initrc_exec_t, mon_statd_initrc_exec_t,
38 fcoemon_initrc_exec_t, sanlock_initrc_exec_t, pads_initrc_exec_t,
39 mcelog_initrc_exec_t, rtkit_daemon_initrc_exec_t, ulogd_initrc_exec_t,
40 vnstatd_initrc_exec_t, nis_initrc_exec_t, icecast_initrc_exec_t,
41 pcp_pmwebd_initrc_exec_t, samba_initrc_exec_t, named_initrc_exec_t,
42 asterisk_initrc_exec_t, shorewall_initrc_exec_t, ccs_initrc_exec_t,
43 zabbix_initrc_exec_t, zoneminder_initrc_exec_t, sendmail_initrc_exec_t,
44 kdump_initrc_exec_t, piranha_pulse_initrc_exec_t, ipa_custodia_dml‐
45 dap_exec_t, pcp_pmmgr_initrc_exec_t, abrt_initrc_exec_t, initrc_exec_t,
46 pcp_pmcd_initrc_exec_t, ajaxterm_initrc_exec_t, cyrus_initrc_exec_t,
47 gpm_initrc_exec_t, polipo_initrc_exec_t, rngd_initrc_exec_t,
48 entropyd_initrc_exec_t, usr_t, virtd_initrc_exec_t, certmaster_ini‐
49 trc_exec_t, slpd_initrc_exec_t, dlm_controld_initrc_exec_t, pcp_plug‐
50 in_initrc_exec_t, certmonger_initrc_exec_t, sssd_initrc_exec_t,
51 soundd_initrc_exec_t, cfengine_initrc_exec_t, ricci_initrc_exec_t,
52 ipa_custodia_ra_agent_exec_t, rhnsd_initrc_exec_t, svnserve_ini‐
53 trc_exec_t, mpd_initrc_exec_t, boinc_initrc_exec_t, varnishlog_ini‐
54 trc_exec_t, osad_initrc_exec_t, slapd_initrc_exec_t, iodined_ini‐
55 trc_exec_t, nscd_initrc_exec_t, nslcd_initrc_exec_t, amtu_ini‐
56 trc_exec_t, oracleasm_initrc_exec_t, ftpd_initrc_exec_t, openhpid_ini‐
57 trc_exec_t, hypervkvp_initrc_exec_t, zabbix_agent_initrc_exec_t,
58 rpcd_initrc_exec_t, bacula_initrc_exec_t, bin_t, bcfg2_initrc_exec_t,
59 redis_initrc_exec_t, pcp_pmie_initrc_exec_t, postgrey_initrc_exec_t,
60 innd_initrc_exec_t, cluster_initrc_exec_t, avahi_initrc_exec_t, jab‐
61 berd_initrc_exec_t, sblim_initrc_exec_t, openct_initrc_exec_t,
62 uucpd_initrc_exec_t, cgconfig_initrc_exec_t, tuned_initrc_exec_t,
63 setrans_initrc_exec_t, smsd_initrc_exec_t, munin_initrc_exec_t, like‐
64 wise_initrc_exec_t, mysqld_initrc_exec_t, qpidd_initrc_exec_t,
65 rwho_initrc_exec_t, collectd_initrc_exec_t, pcp_pmproxy_initrc_exec_t,
66 NetworkManager_initrc_exec_t, denyhosts_initrc_exec_t, firewalld_ini‐
67 trc_exec_t, foghorn_initrc_exec_t, pingd_initrc_exec_t,
68 pki_ra_script_exec_t, automount_initrc_exec_t, sensord_initrc_exec_t,
69 tcsd_initrc_exec_t, virtlogd_initrc_exec_t, fsdaemon_initrc_exec_t,
70 psad_initrc_exec_t, ciped_initrc_exec_t, naemon_initrc_exec_t,
71 sslh_initrc_exec_t, memcached_initrc_exec_t, crond_initrc_exec_t,
72 portmap_initrc_exec_t, glance_api_initrc_exec_t, conntrackd_ini‐
73 trc_exec_t, dovecot_initrc_exec_t, glusterd_initrc_exec_t, zebra_ini‐
74 trc_exec_t, drbd_initrc_exec_t, mongod_initrc_exec_t, kerberos_ini‐
75 trc_exec_t, cyphesis_initrc_exec_t, aiccu_initrc_exec_t, httpd_ini‐
76 trc_exec_t, dnsmasq_initrc_exec_t, ntpd_initrc_exec_t, apcupsd_ini‐
77 trc_exec_t, rpcbind_initrc_exec_t, gdomap_initrc_exec_t, keystone_ini‐
78 trc_exec_t, wdmd_initrc_exec_t, cpuplug_initrc_exec_t, neutron_ini‐
79 trc_exec_t, dspam_initrc_exec_t, bitlbee_initrc_exec_t, pppd_ini‐
80 trc_exec_t, dhcpd_initrc_exec_t, rhsmcertd_initrc_exec_t, puppetmas‐
81 ter_initrc_exec_t, cobblerd_initrc_exec_t, fail2ban_initrc_exec_t,
82 exim_initrc_exec_t, irqbalance_initrc_exec_t, radiusd_initrc_exec_t,
83 arpwatch_initrc_exec_t, varnishd_initrc_exec_t, spamd_initrc_exec_t,
84 glance_scrubber_initrc_exec_t, glance_registry_initrc_exec_t,
85 nagios_initrc_exec_t, radvd_initrc_exec_t, nfsd_initrc_exec_t, miniss‐
86 dpd_initrc_exec_t, kismet_initrc_exec_t, vhostmd_initrc_exec_t,
87 ipa_custodia_pki_tomcat_exec_t, portreserve_initrc_exec_t, ksm‐
88 tuned_initrc_exec_t, tgtd_initrc_exec_t, snort_initrc_exec_t,
89 couchdb_initrc_exec_t, blkmapd_initrc_exec_t, smokeping_initrc_exec_t,
90 apmd_initrc_exec_t, watchdog_initrc_exec_t, pki_tps_script_exec_t,
91 clvmd_initrc_exec_t, dhcpc_helper_exec_t, pcscd_initrc_exec_t,
92 uuidd_initrc_exec_t, prelude_initrc_exec_t, sysstat_initrc_exec_t,
93 minidlna_initrc_exec_t, cmirrord_initrc_exec_t, snmpd_initrc_exec_t,
94 syslogd_initrc_exec_t, ipsec_initrc_exec_t, iwhd_initrc_exec_t,
95 pkcs_slotd_initrc_exec_t, pcp_pmlogger_initrc_exec_t, sshd_ini‐
96 trc_exec_t, vdagentd_initrc_exec_t, mdadm_initrc_exec_t, ddclient_ini‐
97 trc_exec_t file types.
98
99 The default entrypoint paths for the initrc_t domain are the following:
100
101 All executeables with the default executable label, usually stored in
102 /usr/bin and /usr/sbin. /etc/rc.d/init.d/MailScanner,
103 /etc/rc.d/init.d/mysqlmanager, /etc/rc.d/init.d/fetchmail,
104 /etc/rc.d/init.d/rabbitmq-server, /etc/rc.d/init.d/(open)?afs,
105 /etc/rc.d/init.d/openafs-client, /etc/rc.d/init.d/ypbind,
106 /etc/rc.d/init.d/chronyd, /etc/rc.d/init.d/isnsd,
107 /etc/rc.d/init.d/sasl, /etc/rc.d/init.d/postfix,
108 /etc/rc.d/init.d/psacct, /etc/rc.d/init.d/auditd, /etc/rc.d/init.d/pup‐
109 pet, /etc/rc.d/init.d/lirc, /bin/d?ash, /bin/ksh.*, /bin/zsh.*,
110 /usr/bin/d?ash, /usr/bin/ksh.*, /usr/bin/zsh.*, /bin/esh, /bin/bash,
111 /bin/fish, /bin/mksh, /bin/sash, /bin/tcsh, /bin/yash, /bin/bash2,
112 /usr/bin/esh, /sbin/nologin, /usr/bin/bash, /usr/bin/fish,
113 /usr/bin/mksh, /usr/bin/sash, /usr/bin/tcsh, /usr/bin/yash,
114 /usr/bin/bash2, /usr/sbin/sesh, /usr/sbin/smrsh, /usr/bin/scponly,
115 /usr/libexec/sesh, /usr/sbin/nologin, /usr/bin/git-shell,
116 /usr/sbin/scponlyc, /usr/libexec/sudo/sesh, /usr/bin/cockpit-bridge,
117 /usr/libexec/cockpit-agent, /usr/libexec/git-core/git-shell,
118 /etc/rc.d/init.d/callweaver, /etc/rc.d/init.d/condor,
119 /etc/rc.d/init.d/lldpad, /etc/rc.d/init.d/gpsd, /etc/rc.d/init.d/cgred,
120 /etc/rc.d/init.d/roundup, /etc/rc.d/init.d/ctdb,
121 /etc/rc.d/init.d/dictd, /etc/rc.d/init.d/mrtg,
122 /etc/rc.d/init.d/(se)?postgresql, /etc/rc.d/init.d/.*l2tpd,
123 /etc/rc.d/init.d/cvs, /etc/rc.d/init.d/dund, /etc/rc.d/init.d/pand,
124 /etc/rc.d/init.d/bluetooth, /etc/rc.d/init.d/hddtemp,
125 /etc/rc.d/init.d/cups, /etc/rc.d/init.d/ntop, /etc/rc.d/init.d/openvpn,
126 /etc/rc.d/init.d/squid, /etc/rc.d/init.d/ip6?tables,
127 /etc/rc.d/init.d/ebtables, /etc/rc.d/init.d/nftables,
128 /etc/rc.d/init.d/canna, /etc/rc.d/init.d/tor, /etc/rc.d/init.d/privoxy,
129 /etc/rc.d/init.d/clamd.*, /etc/rc.d/init.d/amavis,
130 /etc/rc.d/init.d/amavisd-snmp, /etc/rc.d/init.d/mon_statd,
131 /etc/rc.d/init.d/fcoe, /etc/rc.d/init.d/sanlock, /etc/rc.d/init.d/pads,
132 /etc/rc.d/init.d/mcelog, /etc/rc.d/init.d/rtkit-daemon,
133 /etc/rc.d/init.d/ulogd, /etc/rc.d/init.d/vnstat,
134 /etc/rc.d/init.d/ypserv, /etc/rc.d/init.d/ypxfrd,
135 /etc/rc.d/init.d/yppasswd, /etc/rc.d/init.d/icecast,
136 /etc/rc.d/init.d/pmwebd, /etc/rc.d/init.d/nmb, /etc/rc.d/init.d/smb,
137 /etc/rc.d/init.d/winbind, /etc/rc.d/init.d/named,
138 /etc/rc.d/init.d/unbound, /etc/rc.d/init.d/named-sdb,
139 /etc/rc.d/init.d/asterisk, /etc/rc.d/init.d/shorewall.*,
140 /etc/rc.d/init.d/((ccs)|(ccsd)), /etc/rc.d/init.d/(zabbix|zabbix-
141 server), /etc/rc.d/init.d/zoneminder, /etc/rc.d/init.d/sendmail,
142 /etc/rc.d/init.d/kdump, /etc/rc.d/init.d/pulse, /usr/libexec/ipa/custo‐
143 dia/ipa-custodia-dmldap, /etc/rc.d/init.d/pmmgr, /etc/rc.d/init.d/abrt,
144 /etc/init.d/.*, /etc/rc.d/rc.[^/]+, /etc/rc.d/init.d/.*,
145 /opt/nfast/sbin/init.d-ncipher, /usr/libexec/dcc/stop-.*,
146 /usr/libexec/dcc/start-.*, /usr/lib/systemd/fedora[^/]*,
147 /opt/nfast/scripts/init.d/(.*), /etc/rc.d/rc, /etc/X11/prefdm,
148 /usr/sbin/startx, /usr/bin/sepg_ctl, /usr/sbin/start-dirsrv,
149 /usr/sbin/open_init_pty, /usr/sbin/restart-dirsrv, /etc/sysconfig/net‐
150 work-scripts/ifup-ipsec, /usr/share/system-config-services/system-con‐
151 fig-services-mechanism.py, /etc/rc.d/init.d/pmcd,
152 /etc/rc.d/init.d/ajaxterm, /etc/rc.d/init.d/cyrus.*,
153 /etc/rc.d/init.d/gpm, /etc/rc.d/init.d/polipo, /etc/rc.d/init.d/rngd,
154 /etc/rc.d/init.d/((audio-entropyd)|(haveged)), /opt/.*, /usr/.*,
155 /emul/.*, /export(/.*)?, /ostree(/.*)?, /usr/doc(/.*)?/lib(/.*)?,
156 /usr/inclu.e(/.*)?, /usr/share/rpm(/.*)?,
157 /usr/share/doc(/.*)?/README.*, /usr/lib/modules(/.*)/vmlinuz,
158 /usr/lib/modules(/.*)/initramfs.img, /usr/lib/sysimage(/.*)?,
159 /usr/lib/ostree-boot(/.*)?, /opt, /usr, /emul, /etc/rc.d/init.d/lib‐
160 virtd, /etc/rc.d/init.d/certmaster, /etc/rc.d/init.d/slpd,
161 /etc/rc.d/init.d/certmonger, /etc/rc.d/init.d/sssd,
162 /etc/rc.d/init.d/nasd, /etc/rc.d/init.d/((cf-serverd)|(cf-moni‐
163 tord)|(cf-execd)), /etc/rc.d/init.d/ricci, /usr/libexec/ipa/custo‐
164 dia/ipa-custodia-ra-agent, /etc/rc.d/init.d/rhnsd,
165 /etc/rc.d/init.d/svnserve, /etc/rc.d/init.d/mpd,
166 /etc/rc.d/init.d/boinc-client, /etc/rc.d/init.d/varnishlog,
167 /etc/rc.d/init.d/varnishncsa, /etc/rc.d/init.d/osad,
168 /etc/rc.d/init.d/slapd, /etc/rc.d/init.d/((iodined)|(iodine-server)),
169 /etc/rc.d/init.d/nscd, /etc/rc.d/init.d/nslcd, /etc/rc.d/init.d/amtu,
170 /etc/rc.d/init.d/oracleasm, /etc/rc.d/init.d/vsftpd,
171 /etc/rc.d/init.d/proftpd, /etc/rc.d/init.d/openhpid,
172 /etc/rc.d/init.d/hypervkvpd, /etc/rc.d/init.d/zabbix-agentd,
173 /etc/rc.d/init.d/nfslock, /etc/rc.d/init.d/rpcidmapd,
174 /etc/rc.d/init.d/bacula.*, /etc/rc.d/init.d/bcfg2-server,
175 /etc/rc.d/init.d/redis, /etc/rc.d/init.d/pmie, /etc/rc.d/init.d/post‐
176 grey, /etc/rc.d/init.d/innd, /etc/rc.d/init.d/openais,
177 /etc/rc.d/init.d/corosync, /etc/rc.d/init.d/cpglockd,
178 /etc/rc.d/init.d/heartbeat, /etc/rc.d/init.d/pacemaker,
179 /etc/rc.d/init.d/rgmanager, /etc/rc.d/init.d/avahi.*,
180 /etc/rc.d/init.d/jabberd, /etc/rc.d/init.d/gatherer,
181 /etc/rc.d/init.d/sblim-sfcbd, /etc/rc.d/init.d/openct,
182 /etc/rc.d/init.d/uucp, /etc/rc.d/init.d/cgconfig,
183 /etc/rc.d/init.d/tuned, /etc/rc.d/init.d/mcstrans,
184 /etc/rc.d/init.d/smsd, /etc/rc.d/init.d/munin-node,
185 /etc/rc.d/init.d/lwiod, /etc/rc.d/init.d/lwsmd,
186 /etc/rc.d/init.d/lsassd, /etc/rc.d/init.d/lwregd,
187 /etc/rc.d/init.d/dcerpcd, /etc/rc.d/init.d/srvsvcd,
188 /etc/rc.d/init.d/likewise, /etc/rc.d/init.d/eventlogd,
189 /etc/rc.d/init.d/netlogond, /etc/rc.d/init.d/mysqld,
190 /etc/rc.d/init.d/qpidd, /etc/rc.d/init.d/rwhod, /etc/rc.d/init.d/col‐
191 lectd, /etc/rc.d/init.d/pmproxy, /etc/NetworkManager/dis‐
192 patcher.d(/.*)?, /etc/rc.d/init.d/wicd, /etc/rc.d/init.d/denyhosts,
193 /etc/rc.d/init.d/firewalld, /etc/rc.d/init.d/whatsup-pingd,
194 /etc/rc.d/init.d/autofs, /etc/rc.d/init.d/sensord,
195 /etc/rc.d/init.d/(tcsd|trousers), /etc/rc.d/init.d/virtlogd,
196 /etc/rc.d/init.d/(smartd|smartmontools), /etc/rc.d/init.d/psad,
197 /etc/rc.d/init.d/ciped.*, /etc/rc.d/init.d/naemon,
198 /etc/rc.d/init.d/sslh, /etc/rc.d/init.d/memcached,
199 /etc/rc.d/init.d/atd, /etc/rc.d/init.d/portmap, /etc/rc.d/init.d/open‐
200 stack-glance-api, /etc/rc.d/init.d/dovecot, /etc/rc.d/init.d/gluster.*,
201 /usr/sbin/glusterd, /etc/rc.d/init.d/bgpd, /etc/rc.d/init.d/ripd,
202 /etc/rc.d/init.d/isisd, /etc/rc.d/init.d/ospfd, /etc/rc.d/init.d/zebra,
203 /etc/rc.d/init.d/babeld, /etc/rc.d/init.d/ospf6d, /etc/rc.d/init.d/rip‐
204 ngd, /etc/rc.d/init.d/drbd, /etc/rc.d/init.d/mongod,
205 /etc/rc.d/init.d/mongos, /etc/rc.d/init.d/kprop, /etc/rc.d/init.d/kad‐
206 mind, /etc/rc.d/init.d/krb524d, /etc/rc.d/init.d/krb5kdc,
207 /etc/rc.d/init.d/cyphesis, /etc/rc.d/init.d/aiccu, /etc/init.d/chero‐
208 kee, /etc/rc.d/init.d/httpd, /etc/rc.d/init.d/lighttpd,
209 /etc/rc.d/init.d/dnsmasq, /etc/rc.d/init.d/ntpd,
210 /etc/rc.d/init.d/apcupsd, /etc/rc.d/init.d/rpcbind,
211 /etc/rc.d/init.d/gdomap, /etc/rc.d/init.d/openstack-keystone,
212 /etc/rc.d/init.d/wdmd, /etc/rc.d/init.d/cpuplugd, /etc/rc.d/init.d/neu‐
213 tron.*, /etc/rc.d/init.d/quantum.*, /etc/rc.d/init.d/dspam,
214 /etc/rc.d/init.d/bitlbee, /etc/ppp/(auth|ip(v6|x)?)-(up|down),
215 /etc/rc.d/init.d/ppp, /etc/rc.d/init.d/dhcpd(6)?,
216 /etc/rc.d/init.d/dhcrelay(6)?, /etc/rc.d/init.d/rhsmcertd,
217 /etc/rc.d/init.d/puppetmaster, /etc/rc.d/init.d/cobblerd,
218 /etc/rc.d/init.d/fail2ban, /etc/rc.d/init.d/exim,
219 /etc/rc.d/init.d/irqbalance, /etc/rc.d/init.d/radiusd,
220 /etc/rc.d/init.d/arpwatch, /etc/rc.d/init.d/varnish,
221 /etc/rc.d/init.d/mimedefang.*, /etc/rc.d/init.d/spamd,
222 /etc/rc.d/init.d/pyzord, /etc/rc.d/init.d/spampd,
223 /etc/rc.d/init.d/openstack-glance-scrubber, /etc/rc.d/init.d/openstack-
224 glance-registry, /etc/rc.d/init.d/nrpe, /etc/rc.d/init.d/nagios,
225 /etc/rc.d/init.d/radvd, /etc/rc.d/init.d/nfs, /etc/rc.d/init.d/miniss‐
226 dpd, /etc/rc.d/init.d/kismet.*, /etc/rc.d/init.d/vhostmd,
227 /usr/libexec/ipa/custodia/ipa-custodia-pki-tomcat,
228 /usr/libexec/ipa/custodia/ipa-custodia-pki-tomcat-wrapped,
229 /etc/rc.d/init.d/portreserve, /etc/rc.d/init.d/ksmtuned,
230 /etc/rc.d/init.d/tgtd, /etc/rc.d/init.d/snortd,
231 /etc/rc.d/init.d/couchdb, /etc/rc.d/init.d/blkmapd,
232 /etc/rc.d/init.d/smokeping, /etc/rc.d/init.d/acpid,
233 /etc/rc.d/init.d/watchdog, /etc/firestarter/firestarter.sh,
234 /etc/rc.d/init.d/pcscd, /etc/rc.d/init.d/uuidd, /etc/rc.d/init.d/pre‐
235 lude-lml, /etc/rc.d/init.d/prelude-manager, /etc/rc.d/init.d/prelude-
236 correlator, /etc/rc.d/init.d/sysstat, /etc/rc.d/init.d/minidlna,
237 /etc/rc.d/init.d/cmirrord, /etc/rc.d/init.d/(snmpd|snmptrapd),
238 /etc/rc.d/init.d/rsyslog, /etc/rc.d/init.d/ipsec,
239 /etc/rc.d/init.d/racoon, /etc/rc.d/init.d/strongswan,
240 /etc/rc.d/init.d/iwhd, /etc/rc.d/init.d/pkcsslotd,
241 /etc/rc.d/init.d/pmlogger, /etc/rc.d/init.d/sshd,
242 /etc/rc.d/init.d/spice-vdagentd, /etc/rc.d/init.d/mdmonitor,
243 /etc/rc.d/init.d/ddclient
244
246 SELinux defines process types (domains) for each process running on the
247 system
248
249 You can see the context of a process using the -Z option to ps
250
251 Policy governs the access confined processes have to files. SELinux
252 initrc policy is very flexible allowing users to setup their initrc
253 processes in as secure a method as possible.
254
255 The following process types are defined for initrc:
256
257 initrc_t
258
259 Note: semanage permissive -a initrc_t can be used to make the process
260 type initrc_t permissive. SELinux does not deny access to permissive
261 process types, but the AVC (SELinux denials) messages are still gener‐
262 ated.
263
264
266 SELinux policy is customizable based on least access required. initrc
267 policy is extremely flexible and has several booleans that allow you to
268 manipulate the policy and run initrc with the tightest access possible.
269
270
271
272 If you want to allow users to resolve user passwd entries directly from
273 ldap rather then using a sssd server, you must turn on the authlo‐
274 gin_nsswitch_use_ldap boolean. Disabled by default.
275
276 setsebool -P authlogin_nsswitch_use_ldap 1
277
278
279
280 If you want to deny user domains applications to map a memory region as
281 both executable and writable, this is dangerous and the executable
282 should be reported in bugzilla, you must turn on the deny_execmem bool‐
283 ean. Enabled by default.
284
285 setsebool -P deny_execmem 1
286
287
288
289 If you want to allow all domains to execute in fips_mode, you must turn
290 on the fips_mode boolean. Enabled by default.
291
292 setsebool -P fips_mode 1
293
294
295
296 If you want to allow confined applications to run with kerberos, you
297 must turn on the kerberos_enabled boolean. Disabled by default.
298
299 setsebool -P kerberos_enabled 1
300
301
302
303 If you want to control the ability to mmap a low area of the address
304 space, as configured by /proc/sys/vm/mmap_min_addr, you must turn on
305 the mmap_low_allowed boolean. Disabled by default.
306
307 setsebool -P mmap_low_allowed 1
308
309
310
311 If you want to allow system to run with NIS, you must turn on the
312 nis_enabled boolean. Disabled by default.
313
314 setsebool -P nis_enabled 1
315
316
317
318 If you want to allow confined applications to use nscd shared memory,
319 you must turn on the nscd_use_shm boolean. Disabled by default.
320
321 setsebool -P nscd_use_shm 1
322
323
324
325 If you want to disable kernel module loading, you must turn on the
326 secure_mode_insmod boolean. Enabled by default.
327
328 setsebool -P secure_mode_insmod 1
329
330
331
332 If you want to allow unconfined executables to make their heap memory
333 executable. Doing this is a really bad idea. Probably indicates a
334 badly coded executable, but could indicate an attack. This executable
335 should be reported in bugzilla, you must turn on the selin‐
336 uxuser_execheap boolean. Disabled by default.
337
338 setsebool -P selinuxuser_execheap 1
339
340
341
342 If you want to allow unconfined executables to make their stack exe‐
343 cutable. This should never, ever be necessary. Probably indicates a
344 badly coded executable, but could indicate an attack. This executable
345 should be reported in bugzilla, you must turn on the selinuxuser_exec‐
346 stack boolean. Disabled by default.
347
348 setsebool -P selinuxuser_execstack 1
349
350
351
353 The SELinux process type initrc_t can manage files labeled with the
354 following file types. The paths listed are the default paths for these
355 file types. Note the processes UID still need to have DAC permissions.
356
357 file_type
358
359 all files on the system
360
361
363 SELinux requires files to have an extended attribute to define the file
364 type.
365
366 You can see the context of a file using the -Z option to ls
367
368 Policy governs the access confined processes have to these files.
369 SELinux initrc policy is very flexible allowing users to setup their
370 initrc processes in as secure a method as possible.
371
372 STANDARD FILE CONTEXT
373
374 SELinux defines the file context types for the initrc, if you wanted to
375 store files with these types in a diffent paths, you need to execute
376 the semanage command to sepecify alternate labeling and then use
377 restorecon to put the labels on disk.
378
379 semanage fcontext -a -t initrc_var_run_t '/srv/myinitrc_content(/.*)?'
380 restorecon -R -v /srv/myinitrc_content
381
382 Note: SELinux often uses regular expressions to specify labels that
383 match multiple files.
384
385 The following file types are defined for initrc:
386
387
388
389 initrc_devpts_t
390
391 - Set files with the initrc_devpts_t type, if you want to treat the
392 files as initrc devpts data.
393
394
395
396 initrc_exec_t
397
398 - Set files with the initrc_exec_t type, if you want to transition an
399 executable to the initrc_t domain.
400
401
402 Paths:
403 /etc/init.d/.*, /etc/rc.d/rc.[^/]+, /etc/rc.d/init.d/.*,
404 /opt/nfast/sbin/init.d-ncipher, /usr/libexec/dcc/stop-.*,
405 /usr/libexec/dcc/start-.*, /usr/lib/systemd/fedora[^/]*,
406 /opt/nfast/scripts/init.d/(.*), /etc/rc.d/rc, /etc/X11/prefdm,
407 /usr/sbin/startx, /usr/bin/sepg_ctl, /usr/sbin/start-dirsrv,
408 /usr/sbin/open_init_pty, /usr/sbin/restart-dirsrv, /etc/syscon‐
409 fig/network-scripts/ifup-ipsec, /usr/share/system-config-ser‐
410 vices/system-config-services-mechanism.py
411
412
413 initrc_state_t
414
415 - Set files with the initrc_state_t type, if you want to treat the
416 files as initrc state data.
417
418
419
420 initrc_tmp_t
421
422 - Set files with the initrc_tmp_t type, if you want to store initrc
423 temporary files in the /tmp directories.
424
425
426
427 initrc_var_log_t
428
429 - Set files with the initrc_var_log_t type, if you want to treat the
430 data as initrc var log data, usually stored under the /var/log direc‐
431 tory.
432
433
434
435 initrc_var_run_t
436
437 - Set files with the initrc_var_run_t type, if you want to store the
438 initrc files under the /run or /var/run directory.
439
440
441 Paths:
442 /var/run/utmp, /var/run/random-seed, /var/run/runlevel.dir,
443 /var/run/setmixer_flag
444
445
446 Note: File context can be temporarily modified with the chcon command.
447 If you want to permanently change the file context you need to use the
448 semanage fcontext command. This will modify the SELinux labeling data‐
449 base. You will need to use restorecon to apply the labels.
450
451
453 semanage fcontext can also be used to manipulate default file context
454 mappings.
455
456 semanage permissive can also be used to manipulate whether or not a
457 process type is permissive.
458
459 semanage module can also be used to enable/disable/install/remove pol‐
460 icy modules.
461
462 semanage boolean can also be used to manipulate the booleans
463
464
465 system-config-selinux is a GUI tool available to customize SELinux pol‐
466 icy settings.
467
468
470 This manual page was auto-generated using sepolicy manpage .
471
472
474 selinux(8), initrc(8), semanage(8), restorecon(8), chcon(1), sepol‐
475 icy(8), setsebool(8)
476
477
478
479initrc 19-12-02 initrc_selinux(8)