1kdump_selinux(8) SELinux Policy kdump kdump_selinux(8)
2
3
4
6 kdump_selinux - Security Enhanced Linux Policy for the kdump processes
7
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
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
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
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
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_var_lib_t
77
78 /var/lib/kdump(/.*)?
79
80 tmp_t
81
82 /sandbox(/.*)?
83 /tmp
84 /usr/tmp
85 /var/tmp
86 /var/tmp
87 /tmp-inst
88 /var/tmp-inst
89 /var/tmp/tmp-inst
90 /var/tmp/vi.recover
91
92
94 SELinux requires files to have an extended attribute to define the file
95 type.
96
97 You can see the context of a file using the -Z option to ls
98
99 Policy governs the access confined processes have to these files.
100 SELinux kdump policy is very flexible allowing users to setup their
101 kdump processes in as secure a method as possible.
102
103 STANDARD FILE CONTEXT
104
105 SELinux defines the file context types for the kdump, if you wanted to
106 store files with these types in a diffent paths, you need to execute
107 the semanage command to specify alternate labeling and then use re‐
108 storecon to put the labels on disk.
109
110 semanage fcontext -a -t kdumpgui_tmp_t '/srv/mykdump_content(/.*)?'
111 restorecon -R -v /srv/mykdump_content
112
113 Note: SELinux often uses regular expressions to specify labels that
114 match multiple files.
115
116 The following file types are defined for kdump:
117
118
119
120 kdump_crash_t
121
122 - Set files with the kdump_crash_t type, if you want to treat the files
123 as kdump crash data.
124
125
126
127 kdump_etc_t
128
129 - Set files with the kdump_etc_t type, if you want to store kdump files
130 in the /etc directories.
131
132
133
134 kdump_exec_t
135
136 - Set files with the kdump_exec_t type, if you want to transition an
137 executable to the kdump_t domain.
138
139
140 Paths:
141 /sbin/kdump, /sbin/kexec, /usr/sbin/kdump, /usr/sbin/kexec
142
143
144 kdump_initrc_exec_t
145
146 - Set files with the kdump_initrc_exec_t type, if you want to transi‐
147 tion an executable to the kdump_initrc_t domain.
148
149
150
151 kdump_lock_t
152
153 - Set files with the kdump_lock_t type, if you want to treat the files
154 as kdump lock data, stored under the /var/lock directory
155
156
157
158 kdump_unit_file_t
159
160 - Set files with the kdump_unit_file_t type, if you want to treat the
161 files as kdump unit content.
162
163
164
165 kdump_var_lib_t
166
167 - Set files with the kdump_var_lib_t type, if you want to store the
168 kdump files under the /var/lib directory.
169
170
171
172 kdumpctl_exec_t
173
174 - Set files with the kdumpctl_exec_t type, if you want to transition an
175 executable to the kdumpctl_t domain.
176
177
178
179 kdumpctl_tmp_t
180
181 - Set files with the kdumpctl_tmp_t type, if you want to store kdumpctl
182 temporary files in the /tmp directories.
183
184
185
186 kdumpgui_exec_t
187
188 - Set files with the kdumpgui_exec_t type, if you want to transition an
189 executable to the kdumpgui_t domain.
190
191
192
193 kdumpgui_tmp_t
194
195 - Set files with the kdumpgui_tmp_t type, if you want to store kdumpgui
196 temporary files in the /tmp directories.
197
198
199
200 Note: File context can be temporarily modified with the chcon command.
201 If you want to permanently change the file context you need to use the
202 semanage fcontext command. This will modify the SELinux labeling data‐
203 base. You will need to use restorecon to apply the labels.
204
205
207 semanage fcontext can also be used to manipulate default file context
208 mappings.
209
210 semanage permissive can also be used to manipulate whether or not a
211 process type is permissive.
212
213 semanage module can also be used to enable/disable/install/remove pol‐
214 icy modules.
215
216 semanage boolean can also be used to manipulate the booleans
217
218
219 system-config-selinux is a GUI tool available to customize SELinux pol‐
220 icy settings.
221
222
224 This manual page was auto-generated using sepolicy manpage .
225
226
228 selinux(8), kdump(8), semanage(8), restorecon(8), chcon(1), sepol‐
229 icy(8), setsebool(8)
230
231
232
233kdump 23-02-03 kdump_selinux(8)