1mysqld_safe_selinux(8)    SELinux Policy mysqld_safe    mysqld_safe_selinux(8)
2
3
4

NAME

6       mysqld_safe_selinux   -   Security   Enhanced   Linux  Policy  for  the
7       mysqld_safe processes
8

DESCRIPTION

10       Security-Enhanced Linux secures the mysqld_safe processes via  flexible
11       mandatory access control.
12
13       The  mysqld_safe processes execute with the mysqld_safe_t SELinux type.
14       You can check if you have these processes running by executing  the  ps
15       command with the -Z qualifier.
16
17       For example:
18
19       ps -eZ | grep mysqld_safe_t
20
21
22

ENTRYPOINTS

24       The    mysqld_safe_t    SELinux   type   can   be   entered   via   the
25       mysqld_safe_exec_t file type.
26
27       The default entrypoint paths for the mysqld_safe_t domain are the  fol‐
28       lowing:
29
30       /usr/bin/mysqld_safe, /usr/bin/mariadbd-safe, /usr/libexec/mysqld_safe-
31       scl-helper
32

PROCESS TYPES

34       SELinux defines process types (domains) for each process running on the
35       system
36
37       You can see the context of a process using the -Z option to ps
38
39       Policy  governs  the  access confined processes have to files.  SELinux
40       mysqld_safe policy is very  flexible  allowing  users  to  setup  their
41       mysqld_safe processes in as secure a method as possible.
42
43       The following process types are defined for mysqld_safe:
44
45       mysqld_safe_t
46
47       Note:  semanage  permissive  -a  mysqld_safe_t  can be used to make the
48       process type mysqld_safe_t permissive. SELinux does not deny access  to
49       permissive  process  types,  but the AVC (SELinux denials) messages are
50       still generated.
51
52

BOOLEANS

54       SELinux  policy  is  customizable  based  on  least  access   required.
55       mysqld_safe  policy is extremely flexible and has several booleans that
56       allow you to manipulate the policy and run mysqld_safe with the  tight‐
57       est access possible.
58
59
60
61       If you want to allow all domains to execute in fips_mode, you must turn
62       on the fips_mode boolean. Enabled by default.
63
64       setsebool -P fips_mode 1
65
66
67
68       If you want to allow system to run with  NIS,  you  must  turn  on  the
69       nis_enabled boolean. Disabled by default.
70
71       setsebool -P nis_enabled 1
72
73
74

MANAGED FILES

76       The  SELinux  process  type mysqld_safe_t can manage files labeled with
77       the following file types.  The paths listed are the default  paths  for
78       these  file  types.  Note the processes UID still need to have DAC per‐
79       missions.
80
81       cluster_conf_t
82
83            /etc/cluster(/.*)?
84
85       cluster_var_lib_t
86
87            /var/lib/pcsd(/.*)?
88            /var/lib/cluster(/.*)?
89            /var/lib/openais(/.*)?
90            /var/lib/pengine(/.*)?
91            /var/lib/corosync(/.*)?
92            /usr/lib/heartbeat(/.*)?
93            /var/lib/heartbeat(/.*)?
94            /var/lib/pacemaker(/.*)?
95
96       cluster_var_run_t
97
98            /var/run/crm(/.*)?
99            /var/run/cman_.*
100            /var/run/rsctmp(/.*)?
101            /var/run/aisexec.*
102            /var/run/heartbeat(/.*)?
103            /var/run/pcsd-ruby.socket
104            /var/run/corosync-qnetd(/.*)?
105            /var/run/corosync-qdevice(/.*)?
106            /var/run/corosync.pid
107            /var/run/cpglockd.pid
108            /var/run/rgmanager.pid
109            /var/run/cluster/rgmanager.sk
110
111       krb5_host_rcache_t
112
113            /var/tmp/krb5_0.rcache2
114            /var/cache/krb5rcache(/.*)?
115            /var/tmp/nfs_0
116            /var/tmp/DNS_25
117            /var/tmp/host_0
118            /var/tmp/imap_0
119            /var/tmp/HTTP_23
120            /var/tmp/HTTP_48
121            /var/tmp/ldap_55
122            /var/tmp/ldap_487
123            /var/tmp/ldapmap1_0
124
125       mysqld_db_t
126
127            /var/lib/mysql(-files|-keyring)?(/.*)?
128
129       mysqld_log_t
130
131            /var/log/mysql.*
132            /var/log/mysql(/.*)?
133            /var/log/mariadb(/.*)?
134
135       mysqld_var_run_t
136
137            /var/run/mysql(/.*)?
138            /var/run/mysqld(/.*)?
139            /var/run/mariadb(/.*)?
140            /var/lib/mysql/mysql.sock
141
142       root_t
143
144            /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
145            /
146            /initrd
147
148

FILE CONTEXTS

150       SELinux requires files to have an extended attribute to define the file
151       type.
152
153       You can see the context of a file using the -Z option to ls
154
155       Policy  governs  the  access  confined  processes  have to these files.
156       SELinux mysqld_safe policy is very flexible  allowing  users  to  setup
157       their mysqld_safe processes in as secure a method as possible.
158
159       The following file types are defined for mysqld_safe:
160
161
162
163       mysqld_safe_exec_t
164
165       - Set files with the mysqld_safe_exec_t type, if you want to transition
166       an executable to the mysqld_safe_t domain.
167
168
169       Paths:
170            /usr/bin/mysqld_safe,                      /usr/bin/mariadbd-safe,
171            /usr/libexec/mysqld_safe-scl-helper
172
173
174       Note:  File context can be temporarily modified with the chcon command.
175       If you want to permanently change the file context you need to use  the
176       semanage fcontext command.  This will modify the SELinux labeling data‐
177       base.  You will need to use restorecon to apply the labels.
178
179

COMMANDS

181       semanage fcontext can also be used to manipulate default  file  context
182       mappings.
183
184       semanage  permissive  can  also  be used to manipulate whether or not a
185       process type is permissive.
186
187       semanage module can also be used to enable/disable/install/remove  pol‐
188       icy modules.
189
190       semanage boolean can also be used to manipulate the booleans
191
192
193       system-config-selinux is a GUI tool available to customize SELinux pol‐
194       icy settings.
195
196

AUTHOR

198       This manual page was auto-generated using sepolicy manpage .
199
200

SEE ALSO

202       selinux(8), mysqld_safe(8), semanage(8), restorecon(8),  chcon(1),  se‐
203       policy(8), setsebool(8)
204
205
206
207mysqld_safe                        23-02-03             mysqld_safe_selinux(8)
Impressum