1unconfined_selinux(8)unconfined SELinux Policy documentatiounnconfined_selinux(8)
2
3
4

NAME

6       unconfined_r - Unconfined user role - Security Enhanced Linux Policy
7
8

DESCRIPTION

10       SELinux  supports  Roles  Based Access Control (RBAC), some Linux roles
11       are login roles, while other roles need to be transition into.
12
13       Note: Examples in this man page will use the staff_u SELinux user.
14
15       Non login roles are usually used for administrative tasks. For example,
16       tasks  that  require root privileges.  Roles control which types a user
17       can run processes with. Roles often  have  default  types  assigned  to
18       them.
19
20       The default type for the unconfined_r role is unconfined_t.
21
22       The newrole program to transition directly to this role.
23
24       newrole -r unconfined_r -t unconfined_t
25
26       sudo is the preferred method to do transition from one role to another.
27       You setup sudo to transition to unconfined_r by adding a  similar  line
28       to the /etc/sudoers file.
29
30       USERNAME ALL=(ALL) ROLE=unconfined_r TYPE=unconfined_t COMMAND
31
32       sudo will run COMMAND as staff_u:unconfined_r:unconfined_t:LEVEL
33
34       When  using  a a non login role, you need to setup SELinux so that your
35       SELinux user can reach unconfined_r role.
36
37       Execute the following to see all of the assigned SELinux roles:
38
39       semanage user -l
40
41       You need to add unconfined_r to the staff_u user.  You could setup  the
42       staff_u  user  to  be  able to use the unconfined_r role with a command
43       like:
44
45       $ semanage user -m -R 'staff_r system_r unconfined_r' staff_u
46
47
48

BOOLEANS

50       SELinux policy is customizable based on least access required.   uncon‐
51       fined  policy is extremely flexible and has several booleans that allow
52       you to manipulate the policy  and  run  unconfined  with  the  tightest
53       access possible.
54
55
56
57       If you want to allow unconfined users to transition to the chrome sand‐
58       box domains when running chrome-sandbox, you must turn  on  the  uncon‐
59       fined_chrome_sandbox_transition boolean. Enabled by default.
60
61       setsebool -P unconfined_chrome_sandbox_transition 1
62
63
64
65       If  you want to allow a user to login as an unconfined domain, you must
66       turn on the unconfined_login boolean. Enabled by default.
67
68       setsebool -P unconfined_login 1
69
70
71
72       If you want to allow unconfined users  to  transition  to  the  Mozilla
73       plugin domain when running xulrunner plugin-container, you must turn on
74       the unconfined_mozilla_plugin_transition boolean. Enabled by default.
75
76       setsebool -P unconfined_mozilla_plugin_transition 1
77
78
79
80       If you want to allow users to resolve user passwd entries directly from
81       ldap  rather  then  using  a  sssd server, you must turn on the authlo‐
82       gin_nsswitch_use_ldap boolean. Disabled by default.
83
84       setsebool -P authlogin_nsswitch_use_ldap 1
85
86
87
88       If you want to determine whether crond can execute  jobs  in  the  user
89       domain  as  opposed to the the generic cronjob domain, you must turn on
90       the cron_userdomain_transition boolean. Enabled by default.
91
92       setsebool -P cron_userdomain_transition 1
93
94
95
96       If you want to deny user domains applications to map a memory region as
97       both  executable  and  writable,  this  is dangerous and the executable
98       should be reported in bugzilla, you must turn on the deny_execmem bool‐
99       ean. Enabled by default.
100
101       setsebool -P deny_execmem 1
102
103
104
105       If  you  want  to deny any process from ptracing or debugging any other
106       processes, you  must  turn  on  the  deny_ptrace  boolean.  Enabled  by
107       default.
108
109       setsebool -P deny_ptrace 1
110
111
112
113       If  you  want  to  allow  any  process  to mmap any file on system with
114       attribute file_type, you must turn on the  domain_can_mmap_files  bool‐
115       ean. Enabled by default.
116
117       setsebool -P domain_can_mmap_files 1
118
119
120
121       If  you want to allow all domains write to kmsg_device, while kernel is
122       executed with systemd.log_target=kmsg parameter, you must turn  on  the
123       domain_can_write_kmsg boolean. Disabled by default.
124
125       setsebool -P domain_can_write_kmsg 1
126
127
128
129       If you want to allow all domains to use other domains file descriptors,
130       you must turn on the domain_fd_use boolean. Enabled by default.
131
132       setsebool -P domain_fd_use 1
133
134
135
136       If you want to allow all domains to have the kernel load  modules,  you
137       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
138       default.
139
140       setsebool -P domain_kernel_load_modules 1
141
142
143
144       If you want to allow all domains to execute in fips_mode, you must turn
145       on the fips_mode boolean. Enabled by default.
146
147       setsebool -P fips_mode 1
148
149
150
151       If you want to enable reading of urandom for all domains, you must turn
152       on the global_ssp boolean. Disabled by default.
153
154       setsebool -P global_ssp 1
155
156
157
158       If you want to allow confined applications to run  with  kerberos,  you
159       must turn on the kerberos_enabled boolean. Enabled by default.
160
161       setsebool -P kerberos_enabled 1
162
163
164
165       If you want to allow logging in and using the system from /dev/console,
166       you must turn on the login_console_enabled boolean. Enabled by default.
167
168       setsebool -P login_console_enabled 1
169
170
171
172       If you want to control the ability to mmap a low area  of  the  address
173       space,  as  configured  by /proc/sys/vm/mmap_min_addr, you must turn on
174       the mmap_low_allowed boolean. Disabled by default.
175
176       setsebool -P mmap_low_allowed 1
177
178
179
180       If you want to allow system to run with  NIS,  you  must  turn  on  the
181       nis_enabled boolean. Disabled by default.
182
183       setsebool -P nis_enabled 1
184
185
186
187       If  you  want to allow confined applications to use nscd shared memory,
188       you must turn on the nscd_use_shm boolean. Disabled by default.
189
190       setsebool -P nscd_use_shm 1
191
192
193
194       If you want to disallow programs, such as newrole,  from  transitioning
195       to  administrative user domains, you must turn on the secure_mode bool‐
196       ean. Enabled by default.
197
198       setsebool -P secure_mode 1
199
200
201
202       If you want to disable kernel module loading,  you  must  turn  on  the
203       secure_mode_insmod boolean. Enabled by default.
204
205       setsebool -P secure_mode_insmod 1
206
207
208
209       If  you want to boolean to determine whether the system permits loading
210       policy, setting enforcing mode, and changing boolean values.  Set  this
211       to  true  and  you  have to reboot to set it back, you must turn on the
212       secure_mode_policyload boolean. Enabled by default.
213
214       setsebool -P secure_mode_policyload 1
215
216
217
218       If you want to allow unconfined executables to make their  heap  memory
219       executable.   Doing  this  is  a  really bad idea. Probably indicates a
220       badly coded executable, but could indicate an attack.  This  executable
221       should   be   reported  in  bugzilla,  you  must  turn  on  the  selin‐
222       uxuser_execheap boolean. Disabled by default.
223
224       setsebool -P selinuxuser_execheap 1
225
226
227
228       If you want to  allow  all  unconfined  executables  to  use  libraries
229       requiring  text  relocation  that  are not labeled textrel_shlib_t, you
230       must turn on the selinuxuser_execmod boolean. Enabled by default.
231
232       setsebool -P selinuxuser_execmod 1
233
234
235
236       If you want to allow unconfined executables to make  their  stack  exe‐
237       cutable.   This  should  never, ever be necessary. Probably indicates a
238       badly coded executable, but could indicate an attack.  This  executable
239       should  be reported in bugzilla, you must turn on the selinuxuser_exec‐
240       stack boolean. Enabled by default.
241
242       setsebool -P selinuxuser_execstack 1
243
244
245
246       If you want to allow ssh logins as sysadm_r:sysadm_t, you must turn  on
247       the ssh_sysadm_login boolean. Disabled by default.
248
249       setsebool -P ssh_sysadm_login 1
250
251
252
253       If  you  want  to  support  NFS  home directories, you must turn on the
254       use_nfs_home_dirs boolean. Disabled by default.
255
256       setsebool -P use_nfs_home_dirs 1
257
258
259
260       If you want to support SAMBA home directories, you  must  turn  on  the
261       use_samba_home_dirs boolean. Disabled by default.
262
263       setsebool -P use_samba_home_dirs 1
264
265
266
267       If  you  want to allow the graphical login program to login directly as
268       sysadm_r:sysadm_t, you  must  turn  on  the  xdm_sysadm_login  boolean.
269       Enabled by default.
270
271       setsebool -P xdm_sysadm_login 1
272
273
274
275       If you want to support X userspace object manager, you must turn on the
276       xserver_object_manager boolean. Enabled by default.
277
278       setsebool -P xserver_object_manager 1
279
280
281

MANAGED FILES

283       The SELinux process type unconfined_t can manage files labeled with the
284       following file types.  The paths listed are the default paths for these
285       file types.  Note the processes UID still need to have DAC permissions.
286
287       file_type
288
289            all files on the system
290
291

COMMANDS

293       semanage fcontext can also be used to manipulate default  file  context
294       mappings.
295
296       semanage  permissive  can  also  be used to manipulate whether or not a
297       process type is permissive.
298
299       semanage module can also be used to enable/disable/install/remove  pol‐
300       icy modules.
301
302       semanage boolean can also be used to manipulate the booleans
303
304
305       system-config-selinux is a GUI tool available to customize SELinux pol‐
306       icy settings.
307
308

AUTHOR

310       This manual page was auto-generated using sepolicy manpage .
311
312

SEE ALSO

314       selinux(8), unconfined(8), semanage(8), restorecon(8), chcon(1), sepol‐
315       icy(8)    ,    setsebool(8),    unconfined_cronjob_selinux(8),   uncon‐
316       fined_dbusd_selinux(8),       unconfined_mount_selinux(8),       uncon‐
317       fined_munin_plugin_selinux(8),  unconfined_sendmail_selinux(8),  uncon‐
318       fined_service_selinux(8)
319
320
321
322mgrepl@redhat.com                 unconfined             unconfined_selinux(8)
Impressum