1update_modules_selinux(8)SELinux Policy update_modulesupdate_modules_selinux(8)
2
3
4
6 update_modules_selinux - Security Enhanced Linux Policy for the
7 update_modules processes
8
10 Security-Enhanced Linux secures the update_modules processes via flexi‐
11 ble mandatory access control.
12
13 The update_modules processes execute with the update_modules_t SELinux
14 type. You can check if you have these processes running by executing
15 the ps command with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep update_modules_t
20
21
22
24 The update_modules_t SELinux type can be entered via the update_mod‐
25 ules_exec_t file type.
26
27 The default entrypoint paths for the update_modules_t domain are the
28 following:
29
30 /sbin/modules-update, /sbin/update-modules, /usr/sbin/modules-update,
31 /usr/sbin/update-modules, /sbin/generate-modprobe.conf, /usr/sbin/gen‐
32 erate-modprobe.conf
33
35 SELinux defines process types (domains) for each process running on the
36 system
37
38 You can see the context of a process using the -Z option to ps
39
40 Policy governs the access confined processes have to files. SELinux
41 update_modules policy is very flexible allowing users to setup their
42 update_modules processes in as secure a method as possible.
43
44 The following process types are defined for update_modules:
45
46 update_modules_t
47
48 Note: semanage permissive -a update_modules_t can be used to make the
49 process type update_modules_t permissive. SELinux does not deny access
50 to permissive process types, but the AVC (SELinux denials) messages are
51 still generated.
52
53
55 SELinux policy is customizable based on least access required.
56 update_modules policy is extremely flexible and has several booleans
57 that allow you to manipulate the policy and run update_modules with the
58 tightest access possible.
59
60
61
62 If you want to allow all daemons the ability to read/write terminals,
63 you must turn on the daemons_use_tty boolean. Disabled by default.
64
65 setsebool -P daemons_use_tty 1
66
67
68
69 If you want to deny any process from ptracing or debugging any other
70 processes, you must turn on the deny_ptrace boolean. Enabled by
71 default.
72
73 setsebool -P deny_ptrace 1
74
75
76
77 If you want to allow any process to mmap any file on system with
78 attribute file_type, you must turn on the domain_can_mmap_files bool‐
79 ean. Enabled by default.
80
81 setsebool -P domain_can_mmap_files 1
82
83
84
85 If you want to allow all domains write to kmsg_device, while kernel is
86 executed with systemd.log_target=kmsg parameter, you must turn on the
87 domain_can_write_kmsg boolean. Disabled by default.
88
89 setsebool -P domain_can_write_kmsg 1
90
91
92
93 If you want to allow all domains to use other domains file descriptors,
94 you must turn on the domain_fd_use boolean. Enabled by default.
95
96 setsebool -P domain_fd_use 1
97
98
99
100 If you want to allow all domains to have the kernel load modules, you
101 must turn on the domain_kernel_load_modules boolean. Disabled by
102 default.
103
104 setsebool -P domain_kernel_load_modules 1
105
106
107
108 If you want to allow all domains to execute in fips_mode, you must turn
109 on the fips_mode boolean. Enabled by default.
110
111 setsebool -P fips_mode 1
112
113
114
115 If you want to enable reading of urandom for all domains, you must turn
116 on the global_ssp boolean. Disabled by default.
117
118 setsebool -P global_ssp 1
119
120
121
123 The SELinux process type update_modules_t can manage files labeled with
124 the following file types. The paths listed are the default paths for
125 these file types. Note the processes UID still need to have DAC per‐
126 missions.
127
128 modules_conf_t
129
130 /etc/modprobe.d(/.*)?
131 /etc/modules.conf.*
132 /etc/modprobe.conf.*
133 /lib/modules/modprobe.conf
134 /usr/lib/modules/modprobe.conf
135
136 modules_dep_t
137
138
139 update_modules_tmp_t
140
141
142
144 SELinux requires files to have an extended attribute to define the file
145 type.
146
147 You can see the context of a file using the -Z option to ls
148
149 Policy governs the access confined processes have to these files.
150 SELinux update_modules policy is very flexible allowing users to setup
151 their update_modules processes in as secure a method as possible.
152
153 STANDARD FILE CONTEXT
154
155 SELinux defines the file context types for the update_modules, if you
156 wanted to store files with these types in a diffent paths, you need to
157 execute the semanage command to sepecify alternate labeling and then
158 use restorecon to put the labels on disk.
159
160 semanage fcontext -a -t update_modules_tmp_t '/srv/myupdate_mod‐
161 ules_content(/.*)?'
162 restorecon -R -v /srv/myupdate_modules_content
163
164 Note: SELinux often uses regular expressions to specify labels that
165 match multiple files.
166
167 The following file types are defined for update_modules:
168
169
170
171 update_modules_exec_t
172
173 - Set files with the update_modules_exec_t type, if you want to transi‐
174 tion an executable to the update_modules_t domain.
175
176
177 Paths:
178 /sbin/modules-update, /sbin/update-modules, /usr/sbin/modules-
179 update, /usr/sbin/update-modules, /sbin/generate-modprobe.conf,
180 /usr/sbin/generate-modprobe.conf
181
182
183 update_modules_tmp_t
184
185 - Set files with the update_modules_tmp_t type, if you want to store
186 update modules temporary files in the /tmp directories.
187
188
189
190 Note: File context can be temporarily modified with the chcon command.
191 If you want to permanently change the file context you need to use the
192 semanage fcontext command. This will modify the SELinux labeling data‐
193 base. You will need to use restorecon to apply the labels.
194
195
197 semanage fcontext can also be used to manipulate default file context
198 mappings.
199
200 semanage permissive can also be used to manipulate whether or not a
201 process type is permissive.
202
203 semanage module can also be used to enable/disable/install/remove pol‐
204 icy modules.
205
206 semanage boolean can also be used to manipulate the booleans
207
208
209 system-config-selinux is a GUI tool available to customize SELinux pol‐
210 icy settings.
211
212
214 This manual page was auto-generated using sepolicy manpage .
215
216
218 selinux(8), update_modules(8), semanage(8), restorecon(8), chcon(1),
219 sepolicy(8) , setsebool(8)
220
221
222
223update_modules 19-04-25 update_modules_selinux(8)