1unconfined_selinux(8)unconfined SELinux Policy documentatiounnconfined_selinux(8)
2
3
4
6 unconfined_r - Unconfined user role - Security Enhanced Linux Policy
7
8
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
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 all domains to execute in fips_mode, you must turn
114 on the fips_mode boolean. Enabled by default.
115
116 setsebool -P fips_mode 1
117
118
119
120 If you want to allow confined applications to run with kerberos, you
121 must turn on the kerberos_enabled boolean. Enabled by default.
122
123 setsebool -P kerberos_enabled 1
124
125
126
127 If you want to control the ability to mmap a low area of the address
128 space, as configured by /proc/sys/vm/mmap_min_addr, you must turn on
129 the mmap_low_allowed boolean. Disabled by default.
130
131 setsebool -P mmap_low_allowed 1
132
133
134
135 If you want to allow system to run with NIS, you must turn on the
136 nis_enabled boolean. Disabled by default.
137
138 setsebool -P nis_enabled 1
139
140
141
142 If you want to allow confined applications to use nscd shared memory,
143 you must turn on the nscd_use_shm boolean. Disabled by default.
144
145 setsebool -P nscd_use_shm 1
146
147
148
149 If you want to disable kernel module loading, you must turn on the
150 secure_mode_insmod boolean. Enabled by default.
151
152 setsebool -P secure_mode_insmod 1
153
154
155
156 If you want to allow unconfined executables to make their heap memory
157 executable. Doing this is a really bad idea. Probably indicates a
158 badly coded executable, but could indicate an attack. This executable
159 should be reported in bugzilla, you must turn on the selin‐
160 uxuser_execheap boolean. Disabled by default.
161
162 setsebool -P selinuxuser_execheap 1
163
164
165
166 If you want to allow all unconfined executables to use libraries
167 requiring text relocation that are not labeled textrel_shlib_t, you
168 must turn on the selinuxuser_execmod boolean. Enabled by default.
169
170 setsebool -P selinuxuser_execmod 1
171
172
173
174 If you want to allow unconfined executables to make their stack exe‐
175 cutable. This should never, ever be necessary. Probably indicates a
176 badly coded executable, but could indicate an attack. This executable
177 should be reported in bugzilla, you must turn on the selinuxuser_exec‐
178 stack boolean. Enabled by default.
179
180 setsebool -P selinuxuser_execstack 1
181
182
183
184 If you want to support NFS home directories, you must turn on the
185 use_nfs_home_dirs boolean. Disabled by default.
186
187 setsebool -P use_nfs_home_dirs 1
188
189
190
191 If you want to support SAMBA home directories, you must turn on the
192 use_samba_home_dirs boolean. Disabled by default.
193
194 setsebool -P use_samba_home_dirs 1
195
196
197
199 The SELinux process type unconfined_t can manage files labeled with the
200 following file types. The paths listed are the default paths for these
201 file types. Note the processes UID still need to have DAC permissions.
202
203 file_type
204
205 all files on the system
206
207
209 semanage fcontext can also be used to manipulate default file context
210 mappings.
211
212 semanage permissive can also be used to manipulate whether or not a
213 process type is permissive.
214
215 semanage module can also be used to enable/disable/install/remove pol‐
216 icy modules.
217
218 semanage boolean can also be used to manipulate the booleans
219
220
221 system-config-selinux is a GUI tool available to customize SELinux pol‐
222 icy settings.
223
224
226 This manual page was auto-generated using sepolicy manpage .
227
228
230 selinux(8), unconfined(8), semanage(8), restorecon(8), chcon(1), sepol‐
231 icy(8), setsebool(8), unconfined_cronjob_selinux(8), uncon‐
232 fined_dbusd_selinux(8), unconfined_mount_selinux(8), uncon‐
233 fined_munin_plugin_selinux(8), unconfined_sendmail_selinux(8), uncon‐
234 fined_service_selinux(8), unconfined_t_selinux(8)
235
236
237
238mgrepl@redhat.com unconfined unconfined_selinux(8)