1initrc_selinux(8)            SELinux Policy initrc           initrc_selinux(8)
2
3
4

NAME

6       initrc_selinux  -  Security  Enhanced  Linux Policy for the initrc pro‐
7       cesses
8

DESCRIPTION

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

ENTRYPOINTS

24       The  initrc_t  SELinux type can be entered via the pcscd_initrc_exec_t,
25       postgrey_initrc_exec_t,    nagios_initrc_exec_t,    innd_initrc_exec_t,
26       bcfg2_initrc_exec_t,  certmonger_initrc_exec_t,  couchdb_initrc_exec_t,
27       openhpid_initrc_exec_t, qpidd_initrc_exec_t,  glance_api_initrc_exec_t,
28       l2tpd_initrc_exec_t,  mcelog_initrc_exec_t,  ipsec_initrc_exec_t,  rab‐
29       bitmq_initrc_exec_t,    httpd_initrc_exec_t,    glusterd_initrc_exec_t,
30       gpsd_initrc_exec_t,   pppd_initrc_exec_t,   apmd_initrc_exec_t,   open‐
31       vpn_initrc_exec_t,    mongod_initrc_exec_t,    memcached_initrc_exec_t,
32       nfsd_initrc_exec_t,   tor_initrc_exec_t,   sensord_initrc_exec_t,  zab‐
33       bix_initrc_exec_t,   keystone_initrc_exec_t,   firewalld_initrc_exec_t,
34       cupsd_initrc_exec_t,  sendmail_initrc_exec_t,  cvs_initrc_exec_t,  san‐
35       lock_initrc_exec_t,  sblim_initrc_exec_t,  hddtemp_initrc_exec_t,   en‐
36       tropyd_initrc_exec_t,    mdadm_initrc_exec_t,    syslogd_initrc_exec_t,
37       dhcpc_helper_exec_t, minidlna_initrc_exec_t,  slpd_initrc_exec_t,  nae‐
38       mon_initrc_exec_t,    ypbind_initrc_exec_t,    mon_statd_initrc_exec_t,
39       squid_initrc_exec_t,   glance_registry_initrc_exec_t,    minissdpd_ini‐
40       trc_exec_t,   ciped_initrc_exec_t,  collectd_initrc_exec_t,  redis_ini‐
41       trc_exec_t, cfengine_initrc_exec_t, zabbix_agent_initrc_exec_t, pcp_pm‐
42       proxy_initrc_exec_t,   kismet_initrc_exec_t,   oracleasm_initrc_exec_t,
43       svnserve_initrc_exec_t, pads_initrc_exec_t, avahi_initrc_exec_t,  bitl‐
44       bee_initrc_exec_t,    dlm_controld_initrc_exec_t,   rngd_initrc_exec_t,
45       exim_initrc_exec_t,   cgred_initrc_exec_t,   portreserve_initrc_exec_t,
46       ftpd_initrc_exec_t,      psad_initrc_exec_t,     neutron_initrc_exec_t,
47       polipo_initrc_exec_t,    virtd_initrc_exec_t,    privoxy_initrc_exec_t,
48       pki_tps_script_exec_t, varnishd_initrc_exec_t, antivirus_initrc_exec_t,
49       abrt_initrc_exec_t, isnsd_initrc_exec_t, bluetooth_initrc_exec_t, auto‐
50       mount_initrc_exec_t,  denyhosts_initrc_exec_t,  iptables_initrc_exec_t,
51       osad_initrc_exec_t, cyphesis_initrc_exec_t, clvmd_initrc_exec_t,  ajax‐
52       term_initrc_exec_t, openct_initrc_exec_t, tgtd_initrc_exec_t, ntpd_ini‐
53       trc_exec_t,  crond_initrc_exec_t,   setrans_initrc_exec_t,   dspam_ini‐
54       trc_exec_t,  dhcpd_initrc_exec_t,  chronyd_initrc_exec_t, virtlogd_ini‐
55       trc_exec_t, tuned_initrc_exec_t,  pcp_pmie_initrc_exec_t,  foghorn_ini‐
56       trc_exec_t,       vnstatd_initrc_exec_t,      irqbalance_initrc_exec_t,
57       blkmapd_initrc_exec_t, vdagentd_initrc_exec_t,  cmirrord_initrc_exec_t,
58       acct_initrc_exec_t,   ksmtuned_initrc_exec_t,   cgconfig_initrc_exec_t,
59       mysqlmanagerd_initrc_exec_t,    arpwatch_initrc_exec_t,    prelude_ini‐
60       trc_exec_t,  pcp_pmcd_initrc_exec_t,  portmap_initrc_exec_t, samba_ini‐
61       trc_exec_t, ccs_initrc_exec_t, canna_initrc_exec_t, NetworkManager_ini‐
62       trc_exec_t,   vhostmd_initrc_exec_t,   wdmd_initrc_exec_t,  soundd_ini‐
63       trc_exec_t, saslauthd_initrc_exec_t,  mysqld_initrc_exec_t,  zebra_ini‐
64       trc_exec_t,  ntop_initrc_exec_t, aiccu_initrc_exec_t, pcp_pmlogger_ini‐
65       trc_exec_t, mscan_initrc_exec_t, roundup_initrc_exec_t, zoneminder_ini‐
66       trc_exec_t,    iwhd_initrc_exec_t,    named_initrc_exec_t,    tcsd_ini‐
67       trc_exec_t, puppetmaster_initrc_exec_t,  shell_exec_t,  certmaster_ini‐
68       trc_exec_t,        kerberos_initrc_exec_t,        pki_ra_script_exec_t,
69       pcp_plugin_initrc_exec_t,  cpuplug_initrc_exec_t,  kdump_initrc_exec_t,
70       boinc_initrc_exec_t,   shorewall_initrc_exec_t,   bacula_initrc_exec_t,
71       uuidd_initrc_exec_t,    dnsmasq_initrc_exec_t,     radvd_initrc_exec_t,
72       pingd_initrc_exec_t,     watchdog_initrc_exec_t,     piranha_pulse_ini‐
73       trc_exec_t,   sysstat_initrc_exec_t,   ulogd_initrc_exec_t,   drbd_ini‐
74       trc_exec_t, fsdaemon_initrc_exec_t, icecast_initrc_exec_t, iodined_ini‐
75       trc_exec_t,  spamd_initrc_exec_t,   sslh_initrc_exec_t,   cobblerd_ini‐
76       trc_exec_t,   sshd_initrc_exec_t,   slapd_initrc_exec_t,  glance_scrub‐
77       ber_initrc_exec_t,  snort_initrc_exec_t,   dictd_initrc_exec_t,   clus‐
78       ter_initrc_exec_t,  lircd_initrc_exec_t, rwho_initrc_exec_t, usr_t, ct‐
79       dbd_initrc_exec_t,    bin_t,    fail2ban_initrc_exec_t,    jabberd_ini‐
80       trc_exec_t,  asterisk_initrc_exec_t,  sssd_initrc_exec_t,  rpcbind_ini‐
81       trc_exec_t,   rpcd_initrc_exec_t,   amtu_initrc_exec_t,    dovecot_ini‐
82       trc_exec_t,  likewise_initrc_exec_t,  mrtg_initrc_exec_t, ddclient_ini‐
83       trc_exec_t,   initrc_exec_t,   gdomap_initrc_exec_t,    conntrackd_ini‐
84       trc_exec_t, nslcd_initrc_exec_t, gpm_initrc_exec_t, smsd_initrc_exec_t,
85       fcoemon_initrc_exec_t, rhsmcertd_initrc_exec_t,  postfix_initrc_exec_t,
86       lldpad_initrc_exec_t,  apcupsd_initrc_exec_t, callweaver_initrc_exec_t,
87       radiusd_initrc_exec_t,  uucpd_initrc_exec_t,  cyrus_initrc_exec_t,  au‐
88       ditd_initrc_exec_t,      puppetagent_initrc_exec_t,     varnishlog_ini‐
89       trc_exec_t,  rhnsd_initrc_exec_t,  nis_initrc_exec_t,   postgresql_ini‐
90       trc_exec_t,  hypervkvp_initrc_exec_t,  condor_initrc_exec_t, munin_ini‐
91       trc_exec_t,   pkcs_slotd_initrc_exec_t,   afs_initrc_exec_t,   mpd_ini‐
92       trc_exec_t,   rtkit_daemon_initrc_exec_t,  snmpd_initrc_exec_t,  fetch‐
93       mail_initrc_exec_t,      ricci_initrc_exec_t,       nscd_initrc_exec_t,
94       smokeping_initrc_exec_t file types.
95
96       The default entrypoint paths for the initrc_t domain are the following:
97
98       All  executables  with  the default executable label, usually stored in
99       /usr/bin and /usr/sbin.  /etc/rc.d/init.d/pcscd, /etc/rc.d/init.d/post‐
100       grey,          /etc/rc.d/init.d/nrpe,          /etc/rc.d/init.d/nagios,
101       /etc/rc.d/init.d/innd,                   /etc/rc.d/init.d/bcfg2-server,
102       /etc/rc.d/init.d/certmonger,                  /etc/rc.d/init.d/couchdb,
103       /etc/rc.d/init.d/openhpid,                      /etc/rc.d/init.d/qpidd,
104       /etc/rc.d/init.d/openstack-glance-api,        /etc/rc.d/init.d/.*l2tpd,
105       /etc/rc.d/init.d/mcelog,                        /etc/rc.d/init.d/ipsec,
106       /etc/rc.d/init.d/racoon,                   /etc/rc.d/init.d/strongswan,
107       /etc/rc.d/init.d/rabbitmq-server,                 /etc/init.d/cherokee,
108       /etc/rc.d/init.d/httpd,                      /etc/rc.d/init.d/lighttpd,
109       /etc/rc.d/init.d/gluster.*, /usr/sbin/glusterd,  /etc/rc.d/init.d/gpsd,
110       /etc/ppp/(auth|ip(v6|x)?)-(up|down),              /etc/rc.d/init.d/ppp,
111       /etc/rc.d/init.d/acpid, /etc/rc.d/init.d/openvpn, /etc/rc.d/init.d/mon‐
112       god,        /etc/rc.d/init.d/mongos,        /etc/rc.d/init.d/memcached,
113       /etc/rc.d/init.d/nfs,  /etc/rc.d/init.d/tor,  /etc/rc.d/init.d/sensord,
114       /etc/rc.d/init.d/(zabbix|zabbix-server),    /etc/rc.d/init.d/openstack-
115       keystone,      /etc/rc.d/init.d/firewalld,       /etc/rc.d/init.d/cups,
116       /etc/rc.d/init.d/sendmail,  /etc/rc.d/init.d/cvs, /etc/rc.d/init.d/san‐
117       lock,     /etc/rc.d/init.d/gatherer,      /etc/rc.d/init.d/sblim-sfcbd,
118       /etc/rc.d/init.d/hddtemp,                  /etc/rc.d/init.d/((audio-en‐
119       tropyd)|(haveged)), /etc/rc.d/init.d/mdmonitor,  /etc/rc.d/init.d/rsys‐
120       log,     /etc/firestarter/firestarter.sh,    /etc/rc.d/init.d/minidlna,
121       /etc/rc.d/init.d/slpd,  /etc/rc.d/init.d/naemon,   /etc/rc.d/init.d/yp‐
122       bind,        /etc/rc.d/init.d/mon_statd,        /etc/rc.d/init.d/squid,
123       /etc/rc.d/init.d/openstack-glance-registry, /etc/rc.d/init.d/minissdpd,
124       /etc/rc.d/init.d/ciped.*,                    /etc/rc.d/init.d/collectd,
125       /etc/rc.d/init.d/redis,        /etc/rc.d/init.d/((cf-serverd)|(cf-moni‐
126       tord)|(cf-execd)), /etc/rc.d/init.d/zabbix-agentd, /etc/rc.d/init.d/pm‐
127       proxy,     /usr/libexec/pcp/lib/pmproxy,     /etc/rc.d/init.d/kismet.*,
128       /etc/rc.d/init.d/oracleasm,                  /etc/rc.d/init.d/svnserve,
129       /etc/rc.d/init.d/pads, /etc/rc.d/init.d/avahi.*, /etc/rc.d/init.d/bitl‐
130       bee,            /etc/rc.d/init.d/rngd,           /etc/rc.d/init.d/exim,
131       /etc/rc.d/init.d/cgred,                   /etc/rc.d/init.d/portreserve,
132       /etc/rc.d/init.d/vsftpd,                      /etc/rc.d/init.d/proftpd,
133       /etc/rc.d/init.d/psad,                      /etc/rc.d/init.d/neutron.*,
134       /etc/rc.d/init.d/quantum.*,                    /etc/rc.d/init.d/polipo,
135       /etc/rc.d/init.d/libvirtd,                    /etc/rc.d/init.d/privoxy,
136       /etc/rc.d/init.d/varnish,                     /etc/rc.d/init.d/clamd.*,
137       /etc/rc.d/init.d/amavis,                 /etc/rc.d/init.d/amavisd-snmp,
138       /etc/rc.d/init.d/abrt,  /etc/rc.d/init.d/isnsd,  /etc/rc.d/init.d/dund,
139       /etc/rc.d/init.d/pand,                      /etc/rc.d/init.d/bluetooth,
140       /etc/rc.d/init.d/autofs,                    /etc/rc.d/init.d/denyhosts,
141       /etc/rc.d/init.d/ip6?tables,                 /etc/rc.d/init.d/ebtables,
142       /etc/rc.d/init.d/nftables,                       /etc/rc.d/init.d/osad,
143       /etc/rc.d/init.d/cyphesis,                   /etc/rc.d/init.d/ajaxterm,
144       /etc/rc.d/init.d/openct,  /etc/rc.d/init.d/tgtd, /etc/rc.d/init.d/ntpd,
145       /etc/rc.d/init.d/atd,                        /etc/rc.d/init.d/mcstrans,
146       /etc/rc.d/init.d/dspam,                     /etc/rc.d/init.d/dhcpd(6)?,
147       /etc/rc.d/init.d/dhcrelay(6)?,                /etc/rc.d/init.d/chronyd,
148       /etc/rc.d/init.d/virtlogd,                      /etc/rc.d/init.d/tuned,
149       /etc/rc.d/init.d/pmie, /usr/libexec/pcp/lib/pmie,  /etc/rc.d/init.d/vn‐
150       stat,       /etc/rc.d/init.d/irqbalance,      /etc/rc.d/init.d/blkmapd,
151       /etc/rc.d/init.d/spice-vdagentd,             /etc/rc.d/init.d/cmirrord,
152       /etc/rc.d/init.d/psacct,                     /etc/rc.d/init.d/ksmtuned,
153       /etc/rc.d/init.d/cgconfig,               /etc/rc.d/init.d/mysqlmanager,
154       /etc/rc.d/init.d/arpwatch,                /etc/rc.d/init.d/prelude-lml,
155       /etc/rc.d/init.d/prelude-manager,  /etc/rc.d/init.d/prelude-correlator,
156       /etc/rc.d/init.d/pmcd,                       /usr/libexec/pcp/lib/pmcd,
157       /etc/rc.d/init.d/portmap,  /etc/rc.d/init.d/nmb,  /etc/rc.d/init.d/smb,
158       /etc/rc.d/init.d/winbind,              /etc/rc.d/init.d/((ccs)|(ccsd)),
159       /etc/rc.d/init.d/canna,                          /etc/rc.d/init.d/wicd,
160       /etc/rc.d/init.d/vhostmd, /etc/rc.d/init.d/wdmd, /etc/rc.d/init.d/nasd,
161       /etc/rc.d/init.d/sasl, /etc/rc.d/init.d/mysqld,  /etc/rc.d/init.d/bgpd,
162       /etc/rc.d/init.d/ripd,  /etc/rc.d/init.d/isisd, /etc/rc.d/init.d/ospfd,
163       /etc/rc.d/init.d/zebra,                        /etc/rc.d/init.d/babeld,
164       /etc/rc.d/init.d/ospf6d,                       /etc/rc.d/init.d/ripngd,
165       /etc/rc.d/init.d/ntop, /etc/rc.d/init.d/aiccu,  /etc/rc.d/init.d/pmlog‐
166       ger,    /usr/libexec/pcp/lib/pmlogger,    /etc/rc.d/init.d/MailScanner,
167       /etc/rc.d/init.d/roundup,                  /etc/rc.d/init.d/zoneminder,
168       /etc/rc.d/init.d/iwhd,   /etc/rc.d/init.d/named,   /etc/rc.d/init.d/un‐
169       bound,  /etc/rc.d/init.d/named-sdb,   /etc/rc.d/init.d/(tcsd|trousers),
170       /etc/rc.d/init.d/puppetmaster,   /bin/d?ash,   /bin/ksh.*,  /bin/zsh.*,
171       /usr/bin/d?ash, /usr/bin/ksh.*,  /usr/bin/zsh.*,  /bin/esh,  /bin/bash,
172       /bin/fish,  /bin/mksh,  /bin/sash,  /bin/tcsh,  /bin/yash,  /bin/bash2,
173       /usr/bin/esh,     /sbin/nologin,     /usr/bin/bash,      /usr/bin/fish,
174       /usr/bin/mksh,     /usr/bin/sash,     /usr/bin/tcsh,     /usr/bin/yash,
175       /usr/bin/bash2,  /usr/sbin/sesh,   /usr/sbin/smrsh,   /usr/bin/scponly,
176       /usr/libexec/sesh,        /usr/sbin/nologin,        /usr/bin/git-shell,
177       /usr/sbin/scponlyc,  /usr/libexec/sudo/sesh,   /usr/bin/cockpit-bridge,
178       /usr/libexec/cockpit-agent,            /usr/libexec/git-core/git-shell,
179       /etc/rc.d/init.d/certmaster,                    /etc/rc.d/init.d/kprop,
180       /etc/rc.d/init.d/kadmind,                     /etc/rc.d/init.d/krb524d,
181       /etc/rc.d/init.d/krb5kdc,                    /etc/rc.d/init.d/cpuplugd,
182       /etc/rc.d/init.d/kdump,                  /etc/rc.d/init.d/boinc-client,
183       /etc/rc.d/init.d/shorewall.*,                /etc/rc.d/init.d/bacula.*,
184       /etc/rc.d/init.d/uuidd,                       /etc/rc.d/init.d/dnsmasq,
185       /etc/rc.d/init.d/radvd,                 /etc/rc.d/init.d/whatsup-pingd,
186       /etc/rc.d/init.d/watchdog,                      /etc/rc.d/init.d/pulse,
187       /etc/rc.d/init.d/sysstat,                       /etc/rc.d/init.d/ulogd,
188       /etc/rc.d/init.d/drbd,         /etc/rc.d/init.d/(smartd|smartmontools),
189       /etc/rc.d/init.d/icecast, /etc/rc.d/init.d/((iodined)|(iodine-server)),
190       /etc/rc.d/init.d/mimedefang.*,                  /etc/rc.d/init.d/spamd,
191       /etc/rc.d/init.d/pyzord,                       /etc/rc.d/init.d/spampd,
192       /etc/rc.d/init.d/sslh,                       /etc/rc.d/init.d/cobblerd,
193       /etc/rc.d/init.d/sshd,  /etc/rc.d/init.d/slapd,  /etc/rc.d/init.d/open‐
194       stack-glance-scrubber, /etc/rc.d/init.d/snortd, /etc/rc.d/init.d/dictd,
195       /etc/rc.d/init.d/openais,                    /etc/rc.d/init.d/corosync,
196       /etc/rc.d/init.d/cpglockd,                  /etc/rc.d/init.d/heartbeat,
197       /etc/rc.d/init.d/pacemaker,                 /etc/rc.d/init.d/rgmanager,
198       /etc/rc.d/init.d/lirc,    /etc/rc.d/init.d/rwhod,   /opt/.*,   /usr/.*,
199       /emul/.*,   /export(/.*)?,   /ostree(/.*)?,   /usr/doc(/.*)?/lib(/.*)?,
200       /usr/inclu.e(/.*)?,                               /usr/share/rpm(/.*)?,
201       /usr/share/doc(/.*)?/README.*,           /usr/lib/modules(/.*)/vmlinuz,
202       /usr/lib/modules(/.*)/initramfs.img,           /usr/lib/sysimage(/.*)?,
203       /usr/lib/ostree-boot(/.*)?, /opt, /usr,  /emul,  /etc/rc.d/init.d/ctdb,
204       /etc/rc.d/init.d/fail2ban,                    /etc/rc.d/init.d/jabberd,
205       /etc/rc.d/init.d/asterisk,                       /etc/rc.d/init.d/sssd,
206       /etc/rc.d/init.d/rpcbind,                     /etc/rc.d/init.d/nfslock,
207       /etc/rc.d/init.d/rpcidmapd,                      /etc/rc.d/init.d/amtu,
208       /etc/rc.d/init.d/dovecot,                       /etc/rc.d/init.d/lwiod,
209       /etc/rc.d/init.d/lwsmd,                        /etc/rc.d/init.d/lsassd,
210       /etc/rc.d/init.d/lwregd,                      /etc/rc.d/init.d/dcerpcd,
211       /etc/rc.d/init.d/srvsvcd,                    /etc/rc.d/init.d/likewise,
212       /etc/rc.d/init.d/eventlogd,                 /etc/rc.d/init.d/netlogond,
213       /etc/rc.d/init.d/mrtg,    /etc/rc.d/init.d/ddclient,    /etc/init.d/.*,
214       /etc/rc.d/rc.[^/]+,   /etc/rc.d/init.d/.*,  /opt/nfast/sbin/init.d-nci‐
215       pher,       /usr/libexec/dcc/stop-.*,        /usr/libexec/dcc/start-.*,
216       /usr/lib/systemd/fedora[^/]*,           /opt/nfast/scripts/init.d/(.*),
217       /etc/rc.d/rc,  /etc/X11/prefdm,  /usr/sbin/startx,   /usr/bin/sepg_ctl,
218       /usr/sbin/start-dirsrv,   /usr/sbin/open_init_pty,   /usr/sbin/restart-
219       dirsrv,  /etc/sysconfig/network-scripts/ifup-ipsec,  /usr/share/system-
220       config-services/system-config-services-mechanism.py,
221       /etc/rc.d/init.d/gdomap, /etc/rc.d/init.d/nslcd,  /etc/rc.d/init.d/gpm,
222       /etc/rc.d/init.d/smsd,   /etc/rc.d/init.d/fcoe,  /etc/rc.d/init.d/rhsm‐
223       certd,        /etc/rc.d/init.d/postfix,        /etc/rc.d/init.d/lldpad,
224       /etc/rc.d/init.d/apcupsd,                  /etc/rc.d/init.d/callweaver,
225       /etc/rc.d/init.d/radiusd,                        /etc/rc.d/init.d/uucp,
226       /etc/rc.d/init.d/cyrus.*,                      /etc/rc.d/init.d/auditd,
227       /etc/rc.d/init.d/puppet,                   /etc/rc.d/init.d/varnishlog,
228       /etc/rc.d/init.d/varnishncsa,                   /etc/rc.d/init.d/rhnsd,
229       /etc/rc.d/init.d/ypserv, /etc/rc.d/init.d/ypxfrd,  /etc/rc.d/init.d/yp‐
230       passwd,  /etc/rc.d/init.d/(se)?postgresql, /etc/rc.d/init.d/hypervkvpd,
231       /etc/rc.d/init.d/condor,                   /etc/rc.d/init.d/munin-node,
232       /etc/rc.d/init.d/pkcsslotd,                /etc/rc.d/init.d/(open)?afs,
233       /etc/rc.d/init.d/openafs-client,                  /etc/rc.d/init.d/mpd,
234       /etc/rc.d/init.d/rtkit-daemon,      /etc/rc.d/init.d/(snmpd|snmptrapd),
235       /etc/rc.d/init.d/fetchmail,                     /etc/rc.d/init.d/ricci,
236       /etc/rc.d/init.d/nscd, /etc/rc.d/init.d/smokeping
237

PROCESS TYPES

239       SELinux defines process types (domains) for each process running on the
240       system
241
242       You can see the context of a process using the -Z option to ps
243
244       Policy governs the access confined processes have  to  files.   SELinux
245       initrc  policy  is  very  flexible allowing users to setup their initrc
246       processes in as secure a method as possible.
247
248       The following process types are defined for initrc:
249
250       initrc_t
251
252       Note: semanage permissive -a initrc_t can be used to make  the  process
253       type  initrc_t  permissive.  SELinux does not deny access to permissive
254       process types, but the AVC (SELinux denials) messages are still  gener‐
255       ated.
256
257

BOOLEANS

259       SELinux  policy is customizable based on least access required.  initrc
260       policy is extremely flexible and has several booleans that allow you to
261       manipulate the policy and run initrc with the tightest access possible.
262
263
264
265       If you want to deny user domains applications to map a memory region as
266       both executable and writable, this  is  dangerous  and  the  executable
267       should be reported in bugzilla, you must turn on the deny_execmem bool‐
268       ean. Disabled by default.
269
270       setsebool -P deny_execmem 1
271
272
273
274       If you want to control the ability to mmap a low area  of  the  address
275       space,  as  configured  by /proc/sys/vm/mmap_min_addr, you must turn on
276       the mmap_low_allowed boolean. Disabled by default.
277
278       setsebool -P mmap_low_allowed 1
279
280
281
282       If you want to allow system to run with  NIS,  you  must  turn  on  the
283       nis_enabled boolean. Disabled by default.
284
285       setsebool -P nis_enabled 1
286
287
288
289       If  you want to disable kernel module loading, you must turn on the se‐
290       cure_mode_insmod boolean. Disabled by default.
291
292       setsebool -P secure_mode_insmod 1
293
294
295
296       If you want to allow unconfined executables to make their  heap  memory
297       executable.   Doing  this  is  a  really bad idea. Probably indicates a
298       badly coded executable, but could indicate an attack.  This  executable
299       should  be  reported  in bugzilla, you must turn on the selinuxuser_ex‐
300       echeap boolean. Disabled by default.
301
302       setsebool -P selinuxuser_execheap 1
303
304
305
306       If you want to allow unconfined executables to make  their  stack  exe‐
307       cutable.   This  should  never, ever be necessary. Probably indicates a
308       badly coded executable, but could indicate an attack.  This  executable
309       should  be reported in bugzilla, you must turn on the selinuxuser_exec‐
310       stack boolean. Enabled by default.
311
312       setsebool -P selinuxuser_execstack 1
313
314
315

MANAGED FILES

317       The SELinux process type initrc_t can manage  files  labeled  with  the
318       following file types.  The paths listed are the default paths for these
319       file types.  Note the processes UID still need to have DAC permissions.
320
321       file_type
322
323            all files on the system
324
325

FILE CONTEXTS

327       SELinux requires files to have an extended attribute to define the file
328       type.
329
330       You can see the context of a file using the -Z option to ls
331
332       Policy  governs  the  access  confined  processes  have to these files.
333       SELinux initrc policy is very flexible allowing users  to  setup  their
334       initrc processes in as secure a method as possible.
335
336       STANDARD FILE CONTEXT
337
338       SELinux defines the file context types for the initrc, if you wanted to
339       store files with these types in a different paths, you need to  execute
340       the  semanage  command  to  specify alternate labeling and then use re‐
341       storecon to put the labels on disk.
342
343       semanage fcontext -a -t initrc_exec_t '/srv/initrc/content(/.*)?'
344       restorecon -R -v /srv/myinitrc_content
345
346       Note: SELinux often uses regular expressions  to  specify  labels  that
347       match multiple files.
348
349       The following file types are defined for initrc:
350
351
352
353       initrc_devpts_t
354
355       -  Set  files  with  the initrc_devpts_t type, if you want to treat the
356       files as initrc devpts data.
357
358
359
360       initrc_exec_t
361
362       - Set files with the initrc_exec_t type, if you want to  transition  an
363       executable to the initrc_t domain.
364
365
366       Paths:
367            /etc/init.d/.*,      /etc/rc.d/rc.[^/]+,      /etc/rc.d/init.d/.*,
368            /opt/nfast/sbin/init.d-ncipher,          /usr/libexec/dcc/stop-.*,
369            /usr/libexec/dcc/start-.*,           /usr/lib/systemd/fedora[^/]*,
370            /opt/nfast/scripts/init.d/(.*),   /etc/rc.d/rc,   /etc/X11/prefdm,
371            /usr/sbin/startx,    /usr/bin/sepg_ctl,    /usr/sbin/start-dirsrv,
372            /usr/sbin/open_init_pty,  /usr/sbin/restart-dirsrv,   /etc/syscon‐
373            fig/network-scripts/ifup-ipsec,      /usr/share/system-config-ser‐
374            vices/system-config-services-mechanism.py
375
376
377       initrc_state_t
378
379       - Set files with the initrc_state_t type, if  you  want  to  treat  the
380       files as initrc state data.
381
382
383
384       initrc_tmp_t
385
386       -  Set  files  with  the initrc_tmp_t type, if you want to store initrc
387       temporary files in the /tmp directories.
388
389
390
391       initrc_var_log_t
392
393       - Set files with the initrc_var_log_t type, if you want  to  treat  the
394       data  as  initrc var log data, usually stored under the /var/log direc‐
395       tory.
396
397
398
399       initrc_var_run_t
400
401       - Set files with the initrc_var_run_t type, if you want  to  store  the
402       initrc files under the /run or /var/run directory.
403
404
405       Paths:
406            /var/run/utmp,     /var/run/random-seed,    /var/run/runlevel.dir,
407            /var/run/setmixer_flag
408
409
410       Note: File context can be temporarily modified with the chcon  command.
411       If  you want to permanently change the file context you need to use the
412       semanage fcontext command.  This will modify the SELinux labeling data‐
413       base.  You will need to use restorecon to apply the labels.
414
415

COMMANDS

417       semanage  fcontext  can also be used to manipulate default file context
418       mappings.
419
420       semanage permissive can also be used to manipulate  whether  or  not  a
421       process type is permissive.
422
423       semanage  module can also be used to enable/disable/install/remove pol‐
424       icy modules.
425
426       semanage boolean can also be used to manipulate the booleans
427
428
429       system-config-selinux is a GUI tool available to customize SELinux pol‐
430       icy settings.
431
432

AUTHOR

434       This manual page was auto-generated using sepolicy manpage .
435
436

SEE ALSO

438       selinux(8),  initrc(8),  semanage(8),  restorecon(8),  chcon(1), sepol‐
439       icy(8), setsebool(8)
440
441
442
443initrc                             23-10-20                  initrc_selinux(8)
Impressum