1rpm_script_selinux(8) SELinux Policy rpm_script rpm_script_selinux(8)
2
3
4
6 rpm_script_selinux - Security Enhanced Linux Policy for the rpm_script
7 processes
8
10 Security-Enhanced Linux secures the rpm_script processes via flexible
11 mandatory access control.
12
13 The rpm_script processes execute with the rpm_script_t SELinux type.
14 You can check if you have these processes running by executing the ps
15 command with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep rpm_script_t
20
21
22
24 The rpm_script_t SELinux type can be entered via the bin_t, usr_t,
25 ldconfig_exec_t, shell_exec_t file types.
26
27 The default entrypoint paths for the rpm_script_t domain are the fol‐
28 lowing:
29
30 All executeables with the default executable label, usually stored in
31 /usr/bin and /usr/sbin. /usr/.*, /opt/.*, /emul/.*, /ostree(/.*)?,
32 /export(/.*)?, /usr/doc(/.*)?/lib(/.*)?, /usr/inclu.e(/.*)?,
33 /usr/share/doc(/.*)?/README.*, /usr, /opt, /emul, /sbin/ldconfig,
34 /usr/sbin/ldconfig, /bin/d?ash, /bin/zsh.*, /bin/ksh.*, /usr/bin/d?ash,
35 /usr/bin/ksh.*, /usr/bin/zsh.*, /bin/esh, /bin/mksh, /bin/sash,
36 /bin/tcsh, /bin/yash, /bin/bash, /bin/fish, /bin/bash2, /usr/bin/esh,
37 /usr/bin/sash, /usr/bin/tcsh, /usr/bin/yash, /usr/bin/mksh,
38 /usr/bin/fish, /usr/bin/bash, /sbin/nologin, /usr/sbin/sesh,
39 /usr/bin/bash2, /usr/sbin/smrsh, /usr/bin/scponly, /usr/sbin/nologin,
40 /usr/libexec/sesh, /usr/sbin/scponlyc, /usr/bin/git-shell,
41 /usr/libexec/sudo/sesh, /usr/bin/cockpit-bridge, /usr/libexec/cockpit-
42 agent, /usr/libexec/git-core/git-shell
43
45 SELinux defines process types (domains) for each process running on the
46 system
47
48 You can see the context of a process using the -Z option to ps
49
50 Policy governs the access confined processes have to files. SELinux
51 rpm_script policy is very flexible allowing users to setup their
52 rpm_script processes in as secure a method as possible.
53
54 The following process types are defined for rpm_script:
55
56 rpm_script_t
57
58 Note: semanage permissive -a rpm_script_t can be used to make the
59 process type rpm_script_t permissive. SELinux does not deny access to
60 permissive process types, but the AVC (SELinux denials) messages are
61 still generated.
62
63
65 SELinux policy is customizable based on least access required.
66 rpm_script policy is extremely flexible and has several booleans that
67 allow you to manipulate the policy and run rpm_script with the tightest
68 access possible.
69
70
71
72 If you want to allow users to resolve user passwd entries directly from
73 ldap rather then using a sssd server, you must turn on the authlo‐
74 gin_nsswitch_use_ldap boolean. Disabled by default.
75
76 setsebool -P authlogin_nsswitch_use_ldap 1
77
78
79
80 If you want to deny user domains applications to map a memory region as
81 both executable and writable, this is dangerous and the executable
82 should be reported in bugzilla, you must turn on the deny_execmem bool‐
83 ean. Enabled by default.
84
85 setsebool -P deny_execmem 1
86
87
88
89 If you want to deny any process from ptracing or debugging any other
90 processes, you must turn on the deny_ptrace boolean. Enabled by
91 default.
92
93 setsebool -P deny_ptrace 1
94
95
96
97 If you want to allow any process to mmap any file on system with
98 attribute file_type, you must turn on the domain_can_mmap_files bool‐
99 ean. Enabled by default.
100
101 setsebool -P domain_can_mmap_files 1
102
103
104
105 If you want to allow all domains write to kmsg_device, while kernel is
106 executed with systemd.log_target=kmsg parameter, you must turn on the
107 domain_can_write_kmsg boolean. Disabled by default.
108
109 setsebool -P domain_can_write_kmsg 1
110
111
112
113 If you want to allow all domains to use other domains file descriptors,
114 you must turn on the domain_fd_use boolean. Enabled by default.
115
116 setsebool -P domain_fd_use 1
117
118
119
120 If you want to allow all domains to have the kernel load modules, you
121 must turn on the domain_kernel_load_modules boolean. Disabled by
122 default.
123
124 setsebool -P domain_kernel_load_modules 1
125
126
127
128 If you want to allow all domains to execute in fips_mode, you must turn
129 on the fips_mode boolean. Enabled by default.
130
131 setsebool -P fips_mode 1
132
133
134
135 If you want to enable reading of urandom for all domains, you must turn
136 on the global_ssp boolean. Disabled by default.
137
138 setsebool -P global_ssp 1
139
140
141
142 If you want to allow confined applications to run with kerberos, you
143 must turn on the kerberos_enabled boolean. Enabled by default.
144
145 setsebool -P kerberos_enabled 1
146
147
148
149 If you want to control the ability to mmap a low area of the address
150 space, as configured by /proc/sys/vm/mmap_min_addr, you must turn on
151 the mmap_low_allowed boolean. Disabled by default.
152
153 setsebool -P mmap_low_allowed 1
154
155
156
157 If you want to allow system to run with NIS, you must turn on the
158 nis_enabled boolean. Disabled by default.
159
160 setsebool -P nis_enabled 1
161
162
163
164 If you want to allow confined applications to use nscd shared memory,
165 you must turn on the nscd_use_shm boolean. Disabled by default.
166
167 setsebool -P nscd_use_shm 1
168
169
170
171 If you want to disable kernel module loading, you must turn on the
172 secure_mode_insmod boolean. Enabled by default.
173
174 setsebool -P secure_mode_insmod 1
175
176
177
178 If you want to boolean to determine whether the system permits loading
179 policy, setting enforcing mode, and changing boolean values. Set this
180 to true and you have to reboot to set it back, you must turn on the
181 secure_mode_policyload boolean. Enabled by default.
182
183 setsebool -P secure_mode_policyload 1
184
185
186
187 If you want to allow unconfined executables to make their heap memory
188 executable. Doing this is a really bad idea. Probably indicates a
189 badly coded executable, but could indicate an attack. This executable
190 should be reported in bugzilla, you must turn on the selin‐
191 uxuser_execheap boolean. Disabled by default.
192
193 setsebool -P selinuxuser_execheap 1
194
195
196
197 If you want to allow all unconfined executables to use libraries
198 requiring text relocation that are not labeled textrel_shlib_t, you
199 must turn on the selinuxuser_execmod boolean. Enabled by default.
200
201 setsebool -P selinuxuser_execmod 1
202
203
204
205 If you want to allow unconfined executables to make their stack exe‐
206 cutable. This should never, ever be necessary. Probably indicates a
207 badly coded executable, but could indicate an attack. This executable
208 should be reported in bugzilla, you must turn on the selinuxuser_exec‐
209 stack boolean. Enabled by default.
210
211 setsebool -P selinuxuser_execstack 1
212
213
214
215 If you want to support X userspace object manager, you must turn on the
216 xserver_object_manager boolean. Enabled by default.
217
218 setsebool -P xserver_object_manager 1
219
220
221
223 The SELinux process type rpm_script_t can manage files labeled with the
224 following file types. The paths listed are the default paths for these
225 file types. Note the processes UID still need to have DAC permissions.
226
227 file_type
228
229 all files on the system
230
231
233 semanage fcontext can also be used to manipulate default file context
234 mappings.
235
236 semanage permissive can also be used to manipulate whether or not a
237 process type is permissive.
238
239 semanage module can also be used to enable/disable/install/remove pol‐
240 icy modules.
241
242 semanage boolean can also be used to manipulate the booleans
243
244
245 system-config-selinux is a GUI tool available to customize SELinux pol‐
246 icy settings.
247
248
250 This manual page was auto-generated using sepolicy manpage .
251
252
254 selinux(8), rpm_script(8), semanage(8), restorecon(8), chcon(1), sepol‐
255 icy(8) , setsebool(8)
256
257
258
259rpm_script 19-04-25 rpm_script_selinux(8)