1kernel_selinux(8)            SELinux Policy kernel           kernel_selinux(8)
2
3
4

NAME

6       kernel_selinux  -  Security  Enhanced  Linux Policy for the kernel pro‐
7       cesses
8

DESCRIPTION

10       Security-Enhanced Linux  secures  the  kernel  processes  via  flexible
11       mandatory access control.
12
13       The  kernel  processes  execute with the kernel_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 kernel_t
20
21
22

PROCESS TYPES

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

BOOLEANS

44       SELinux  policy is customizable based on least access required.  kernel
45       policy is extremely flexible and has several booleans that allow you to
46       manipulate the policy and run kernel with the tightest access possible.
47
48
49
50       If you want to deny user domains applications to map a memory region as
51       both executable and writable, this  is  dangerous  and  the  executable
52       should be reported in bugzilla, you must turn on the deny_execmem bool‐
53       ean. Enabled by default.
54
55       setsebool -P deny_execmem 1
56
57
58
59       If you want to deny any process from ptracing or  debugging  any  other
60       processes,  you  must  turn  on  the  deny_ptrace  boolean.  Enabled by
61       default.
62
63       setsebool -P deny_ptrace 1
64
65
66
67       If you want to allow any process  to  mmap  any  file  on  system  with
68       attribute  file_type,  you must turn on the domain_can_mmap_files bool‐
69       ean. Enabled by default.
70
71       setsebool -P domain_can_mmap_files 1
72
73
74
75       If you want to allow all domains write to kmsg_device, while kernel  is
76       executed  with  systemd.log_target=kmsg parameter, you must turn on the
77       domain_can_write_kmsg boolean. Disabled by default.
78
79       setsebool -P domain_can_write_kmsg 1
80
81
82
83       If you want to allow all domains to use other domains file descriptors,
84       you must turn on the domain_fd_use boolean. Enabled by default.
85
86       setsebool -P domain_fd_use 1
87
88
89
90       If  you  want to allow all domains to have the kernel load modules, you
91       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
92       default.
93
94       setsebool -P domain_kernel_load_modules 1
95
96
97
98       If you want to allow all domains to execute in fips_mode, you must turn
99       on the fips_mode boolean. Enabled by default.
100
101       setsebool -P fips_mode 1
102
103
104
105       If you want to enable reading of urandom for all domains, you must turn
106       on the global_ssp boolean. Disabled by default.
107
108       setsebool -P global_ssp 1
109
110
111
112       If  you  want  to control the ability to mmap a low area of the address
113       space, as configured by /proc/sys/vm/mmap_min_addr, you  must  turn  on
114       the mmap_low_allowed boolean. Disabled by default.
115
116       setsebool -P mmap_low_allowed 1
117
118
119
120       If you want to allow any files/directories to be exported read/only via
121       NFS, you  must  turn  on  the  nfs_export_all_ro  boolean.  Enabled  by
122       default.
123
124       setsebool -P nfs_export_all_ro 1
125
126
127
128       If  you  want  to allow any files/directories to be exported read/write
129       via NFS, you must turn on the  nfs_export_all_rw  boolean.  Enabled  by
130       default.
131
132       setsebool -P nfs_export_all_rw 1
133
134
135
136       If  you  want  to  allow  system  to run with NIS, you must turn on the
137       nis_enabled boolean. Disabled by default.
138
139       setsebool -P nis_enabled 1
140
141
142
143       If you want to disable kernel module loading,  you  must  turn  on  the
144       secure_mode_insmod boolean. Enabled by default.
145
146       setsebool -P secure_mode_insmod 1
147
148
149
150       If  you want to boolean to determine whether the system permits loading
151       policy, setting enforcing mode, and changing boolean values.  Set  this
152       to  true  and  you  have to reboot to set it back, you must turn on the
153       secure_mode_policyload boolean. Enabled by default.
154
155       setsebool -P secure_mode_policyload 1
156
157
158
159       If you want to allow unconfined executables to make their  heap  memory
160       executable.   Doing  this  is  a  really bad idea. Probably indicates a
161       badly coded executable, but could indicate an attack.  This  executable
162       should   be   reported  in  bugzilla,  you  must  turn  on  the  selin‐
163       uxuser_execheap boolean. Disabled by default.
164
165       setsebool -P selinuxuser_execheap 1
166
167
168
169       If you want to  allow  all  unconfined  executables  to  use  libraries
170       requiring  text  relocation  that  are not labeled textrel_shlib_t, you
171       must turn on the selinuxuser_execmod boolean. Enabled by default.
172
173       setsebool -P selinuxuser_execmod 1
174
175
176
177       If you want to allow unconfined executables to make  their  stack  exe‐
178       cutable.   This  should  never, ever be necessary. Probably indicates a
179       badly coded executable, but could indicate an attack.  This  executable
180       should  be reported in bugzilla, you must turn on the selinuxuser_exec‐
181       stack boolean. Enabled by default.
182
183       setsebool -P selinuxuser_execstack 1
184
185
186
187       If you want to support X userspace object manager, you must turn on the
188       xserver_object_manager boolean. Enabled by default.
189
190       setsebool -P xserver_object_manager 1
191
192
193

MANAGED FILES

195       The  SELinux  process  type  kernel_t can manage files labeled with the
196       following file types.  The paths listed are the default paths for these
197       file types.  Note the processes UID still need to have DAC permissions.
198
199       file_type
200
201            all files on the system
202
203

COMMANDS

205       semanage  fcontext  can also be used to manipulate default file context
206       mappings.
207
208       semanage permissive can also be used to manipulate  whether  or  not  a
209       process type is permissive.
210
211       semanage  module can also be used to enable/disable/install/remove pol‐
212       icy modules.
213
214       semanage boolean can also be used to manipulate the booleans
215
216
217       system-config-selinux is a GUI tool available to customize SELinux pol‐
218       icy settings.
219
220

AUTHOR

222       This manual page was auto-generated using sepolicy manpage .
223
224

SEE ALSO

226       selinux(8),  kernel(8),  semanage(8),  restorecon(8),  chcon(1), sepol‐
227       icy(8) , setsebool(8)
228
229
230
231kernel                             19-04-25                  kernel_selinux(8)
Impressum