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  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. Disabled by default.
60
61       setsebool -P unconfined_chrome_sandbox_transition 1
62
63
64
65       If  you  want to allow a unconfined user to dynamically transition to a
66       new context using setcon, you must turn on the  unconfined_dyntrans_all
67       boolean. Disabled by default.
68
69       setsebool -P unconfined_dyntrans_all 1
70
71
72
73       If  you want to allow a user to login as an unconfined domain, you must
74       turn on the unconfined_login boolean. Enabled by default.
75
76       setsebool -P unconfined_login 1
77
78
79
80       If you want to allow unconfined users  to  transition  to  the  Mozilla
81       plugin domain when running xulrunner plugin-container, you must turn on
82       the unconfined_mozilla_plugin_transition boolean. Disabled by default.
83
84       setsebool -P unconfined_mozilla_plugin_transition 1
85
86
87
88       If you want to allow users to resolve user passwd entries directly from
89       ldap  rather  then  using  a  sssd server, you must turn on the authlo‐
90       gin_nsswitch_use_ldap boolean. Disabled by default.
91
92       setsebool -P authlogin_nsswitch_use_ldap 1
93
94
95
96       If you want to determine whether crond can execute  jobs  in  the  user
97       domain  as  opposed to the the generic cronjob domain, you must turn on
98       the cron_userdomain_transition boolean. Enabled by default.
99
100       setsebool -P cron_userdomain_transition 1
101
102
103
104       If you want to deny user domains applications to map a memory region as
105       both  executable  and  writable,  this  is dangerous and the executable
106       should be reported in bugzilla, you must turn on the deny_execmem bool‐
107       ean. Enabled by default.
108
109       setsebool -P deny_execmem 1
110
111
112
113       If  you  want  to deny any process from ptracing or debugging any other
114       processes, you  must  turn  on  the  deny_ptrace  boolean.  Enabled  by
115       default.
116
117       setsebool -P deny_ptrace 1
118
119
120
121       If you want to allow all domains to execute in fips_mode, you must turn
122       on the fips_mode boolean. Enabled by default.
123
124       setsebool -P fips_mode 1
125
126
127
128       If you want to allow confined applications to run  with  kerberos,  you
129       must turn on the kerberos_enabled boolean. Disabled by default.
130
131       setsebool -P kerberos_enabled 1
132
133
134
135       If  you  want  to control the ability to mmap a low area of the address
136       space, as configured by /proc/sys/vm/mmap_min_addr, you  must  turn  on
137       the mmap_low_allowed boolean. Disabled by default.
138
139       setsebool -P mmap_low_allowed 1
140
141
142
143       If  you  want  to  allow  system  to run with NIS, you must turn on the
144       nis_enabled boolean. Disabled by default.
145
146       setsebool -P nis_enabled 1
147
148
149
150       If you want to allow confined applications to use nscd  shared  memory,
151       you must turn on the nscd_use_shm boolean. Disabled by default.
152
153       setsebool -P nscd_use_shm 1
154
155
156
157       If  you  want  to  disable  kernel module loading, you must turn on the
158       secure_mode_insmod boolean. Enabled by default.
159
160       setsebool -P secure_mode_insmod 1
161
162
163
164       If you want to allow unconfined executables to make their  heap  memory
165       executable.   Doing  this  is  a  really bad idea. Probably indicates a
166       badly coded executable, but could indicate an attack.  This  executable
167       should   be   reported  in  bugzilla,  you  must  turn  on  the  selin‐
168       uxuser_execheap boolean. Disabled by default.
169
170       setsebool -P selinuxuser_execheap 1
171
172
173
174       If you want to  allow  all  unconfined  executables  to  use  libraries
175       requiring  text  relocation  that  are not labeled textrel_shlib_t, you
176       must turn on the selinuxuser_execmod boolean. Disabled by default.
177
178       setsebool -P selinuxuser_execmod 1
179
180
181
182       If you want to allow unconfined executables to make  their  stack  exe‐
183       cutable.   This  should  never, ever be necessary. Probably indicates a
184       badly coded executable, but could indicate an attack.  This  executable
185       should  be reported in bugzilla, you must turn on the selinuxuser_exec‐
186       stack boolean. Disabled by default.
187
188       setsebool -P selinuxuser_execstack 1
189
190
191
192       If you want to support NFS home  directories,  you  must  turn  on  the
193       use_nfs_home_dirs boolean. Enabled by default.
194
195       setsebool -P use_nfs_home_dirs 1
196
197
198
199       If  you  want  to  support SAMBA home directories, you must turn on the
200       use_samba_home_dirs boolean. Disabled by default.
201
202       setsebool -P use_samba_home_dirs 1
203
204
205

MANAGED FILES

207       The SELinux process type unconfined_t can manage files labeled with the
208       following file types.  The paths listed are the default paths for these
209       file types.  Note the processes UID still need to have DAC permissions.
210
211       file_type
212
213            all files on the system
214
215

COMMANDS

217       semanage fcontext can also be used to manipulate default  file  context
218       mappings.
219
220       semanage  permissive  can  also  be used to manipulate whether or not a
221       process type is permissive.
222
223       semanage module can also be used to enable/disable/install/remove  pol‐
224       icy modules.
225
226       semanage boolean can also be used to manipulate the booleans
227
228
229       system-config-selinux is a GUI tool available to customize SELinux pol‐
230       icy settings.
231
232

AUTHOR

234       This manual page was auto-generated using sepolicy manpage .
235
236

SEE ALSO

238       selinux(8), unconfined(8), semanage(8), restorecon(8), chcon(1), sepol‐
239       icy(8),     setsebool(8),     unconfined_cronjob_selinux(8),     uncon‐
240       fined_dbusd_selinux(8),       unconfined_mount_selinux(8),       uncon‐
241       fined_munin_plugin_selinux(8),  unconfined_sendmail_selinux(8),  uncon‐
242       fined_service_selinux(8)
243
244
245
246mgrepl@redhat.com                 unconfined             unconfined_selinux(8)
Impressum