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