1kdump_selinux(8)             SELinux Policy kdump             kdump_selinux(8)
2
3
4

NAME

6       kdump_selinux - Security Enhanced Linux Policy for the kdump processes
7

DESCRIPTION

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

ENTRYPOINTS

23       The kdump_t SELinux type can be entered via the kdump_exec_t file type.
24
25       The default entrypoint paths for the kdump_t domain are the following:
26
27       /sbin/kdump, /sbin/kexec, /usr/sbin/kdump, /usr/sbin/kexec
28

PROCESS TYPES

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

BOOLEANS

50       SELinux policy is customizable based on least access  required.   kdump
51       policy is extremely flexible and has several booleans that allow you to
52       manipulate the policy and run kdump with the tightest access possible.
53
54
55
56       If you want to allow all domains to execute in fips_mode, you must turn
57       on the fips_mode boolean. Enabled by default.
58
59       setsebool -P fips_mode 1
60
61
62

MANAGED FILES

64       The SELinux process type kdump_t can manage files labeled with the fol‐
65       lowing file types.  The paths listed are the default  paths  for  these
66       file types.  Note the processes UID still need to have DAC permissions.
67
68       kdump_crash_t
69
70            /var/crash(/.*)?
71
72       kdump_lock_t
73
74            /var/lock/kdump(/.*)?
75
76       kdump_tmpfs_t
77
78
79       kdump_var_lib_t
80
81            /var/lib/kdump(/.*)?
82
83       tmp_t
84
85            /sandbox(/.*)?
86            /tmp
87            /usr/tmp
88            /var/tmp
89            /var/tmp
90            /tmp-inst
91            /var/tmp-inst
92            /var/tmp/tmp-inst
93            /var/tmp/vi.recover
94
95

FILE CONTEXTS

97       SELinux requires files to have an extended attribute to define the file
98       type.
99
100       You can see the context of a file using the -Z option to ls
101
102       Policy governs the access  confined  processes  have  to  these  files.
103       SELinux  kdump  policy  is  very flexible allowing users to setup their
104       kdump processes in as secure a method as possible.
105
106       STANDARD FILE CONTEXT
107
108       SELinux defines the file context types for the kdump, if you wanted  to
109       store  files with these types in a different paths, you need to execute
110       the semanage command to specify alternate labeling  and  then  use  re‐
111       storecon to put the labels on disk.
112
113       semanage fcontext -a -t kdump_exec_t '/srv/kdump/content(/.*)?'
114       restorecon -R -v /srv/mykdump_content
115
116       Note:  SELinux  often  uses  regular expressions to specify labels that
117       match multiple files.
118
119       The following file types are defined for kdump:
120
121
122
123       kdump_crash_t
124
125       - Set files with the kdump_crash_t type, if you want to treat the files
126       as kdump crash data.
127
128
129
130       kdump_etc_t
131
132       - Set files with the kdump_etc_t type, if you want to store kdump files
133       in the /etc directories.
134
135
136
137       kdump_exec_t
138
139       - Set files with the kdump_exec_t type, if you want  to  transition  an
140       executable to the kdump_t domain.
141
142
143       Paths:
144            /sbin/kdump, /sbin/kexec, /usr/sbin/kdump, /usr/sbin/kexec
145
146
147       kdump_initrc_exec_t
148
149       -  Set  files with the kdump_initrc_exec_t type, if you want to transi‐
150       tion an executable to the kdump_initrc_t domain.
151
152
153
154       kdump_lock_t
155
156       - Set files with the kdump_lock_t type, if you want to treat the  files
157       as kdump lock data, stored under the /var/lock directory
158
159
160
161       kdump_log_t
162
163       - Set files with the kdump_log_t type, if you want to treat the data as
164       kdump log data, usually stored under the /var/log directory.
165
166
167
168       kdump_tmpfs_t
169
170       - Set files with the kdump_tmpfs_t type, if you  want  to  store  kdump
171       files on a tmpfs file system.
172
173
174
175       kdump_unit_file_t
176
177       -  Set  files with the kdump_unit_file_t type, if you want to treat the
178       files as kdump unit content.
179
180
181
182       kdump_var_lib_t
183
184       - Set files with the kdump_var_lib_t type, if you  want  to  store  the
185       kdump files under the /var/lib directory.
186
187
188
189       kdumpctl_exec_t
190
191       - Set files with the kdumpctl_exec_t type, if you want to transition an
192       executable to the kdumpctl_t domain.
193
194
195
196       kdumpctl_tmp_t
197
198       - Set files with the kdumpctl_tmp_t type, if you want to store kdumpctl
199       temporary files in the /tmp directories.
200
201
202
203       kdumpgui_exec_t
204
205       - Set files with the kdumpgui_exec_t type, if you want to transition an
206       executable to the kdumpgui_t domain.
207
208
209
210       kdumpgui_tmp_t
211
212       - Set files with the kdumpgui_tmp_t type, if you want to store kdumpgui
213       temporary files in the /tmp directories.
214
215
216
217       Note:  File context can be temporarily modified with the chcon command.
218       If you want to permanently change the file context you need to use  the
219       semanage fcontext command.  This will modify the SELinux labeling data‐
220       base.  You will need to use restorecon to apply the labels.
221
222

COMMANDS

224       semanage fcontext can also be used to manipulate default  file  context
225       mappings.
226
227       semanage  permissive  can  also  be used to manipulate whether or not a
228       process type is permissive.
229
230       semanage module can also be used to enable/disable/install/remove  pol‐
231       icy modules.
232
233       semanage boolean can also be used to manipulate the booleans
234
235
236       system-config-selinux is a GUI tool available to customize SELinux pol‐
237       icy settings.
238
239

AUTHOR

241       This manual page was auto-generated using sepolicy manpage .
242
243

SEE ALSO

245       selinux(8),  kdump(8),  semanage(8),  restorecon(8),  chcon(1),  sepol‐
246       icy(8), setsebool(8)
247
248
249
250kdump                              23-10-20                   kdump_selinux(8)
Impressum