1unconfined_service_selinSuExL(i8n)ux Policy unconfined_suenrcvoincfeined_service_selinux(8)
2
3
4

NAME

6       unconfined_service_selinux  -  Security  Enhanced  Linux Policy for the
7       unconfined_service processes
8

DESCRIPTION

10       Security-Enhanced Linux secures the  unconfined_service  processes  via
11       flexible mandatory access control.
12
13       The  unconfined_service processes execute with the unconfined_service_t
14       SELinux type. You can check if you have these processes running by exe‐
15       cuting the ps command with the -Z qualifier.
16
17       For example:
18
19       ps -eZ | grep unconfined_service_t
20
21
22

ENTRYPOINTS

24       The  unconfined_service_t  SELinux  type  can be entered via the usr_t,
25       shell_exec_t, bin_t file types.
26
27       The default entrypoint paths for the  unconfined_service_t  domain  are
28       the following:
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,    /bin/d?ash,
34       /bin/zsh.*, /bin/ksh.*, /usr/bin/d?ash, /usr/bin/ksh.*, /usr/bin/zsh.*,
35       /bin/esh,  /bin/mksh,  /bin/sash,  /bin/tcsh,   /bin/yash,   /bin/bash,
36       /bin/fish,   /bin/bash2,  /usr/bin/esh,  /usr/bin/sash,  /usr/bin/tcsh,
37       /usr/bin/yash, /usr/bin/mksh, /usr/bin/fish, /usr/bin/bash, /sbin/nolo‐
38       gin, /usr/sbin/sesh, /usr/bin/bash2, /usr/sbin/smrsh, /usr/bin/scponly,
39       /usr/sbin/nologin, /usr/libexec/sesh, /usr/sbin/scponlyc, /usr/bin/git-
40       shell,         /usr/libexec/sudo/sesh,         /usr/bin/cockpit-bridge,
41       /usr/libexec/cockpit-agent, /usr/libexec/git-core/git-shell
42

PROCESS TYPES

44       SELinux defines process types (domains) for each process running on the
45       system
46
47       You can see the context of a process using the -Z option to ps
48
49       Policy  governs  the  access confined processes have to files.  SELinux
50       unconfined_service policy is very  flexible  allowing  users  to  setup
51       their unconfined_service processes in as secure a method as possible.
52
53       The following process types are defined for unconfined_service:
54
55       unconfined_service_t
56
57       Note:  semanage  permissive -a unconfined_service_t can be used to make
58       the process type unconfined_service_t permissive. SELinux does not deny
59       access  to permissive process types, but the AVC (SELinux denials) mes‐
60       sages are still generated.
61
62

BOOLEANS

64       SELinux policy is customizable based on least access required.   uncon‐
65       fined_service  policy  is  extremely  flexible and has several booleans
66       that allow you to manipulate the policy and run unconfined_service with
67       the tightest access possible.
68
69
70
71       If you want to deny user domains applications to map a memory region as
72       both executable and writable, this  is  dangerous  and  the  executable
73       should be reported in bugzilla, you must turn on the deny_execmem bool‐
74       ean. Enabled by default.
75
76       setsebool -P deny_execmem 1
77
78
79
80       If you want to deny any process from ptracing or  debugging  any  other
81       processes,  you  must  turn  on  the  deny_ptrace  boolean.  Enabled by
82       default.
83
84       setsebool -P deny_ptrace 1
85
86
87
88       If you want to allow any process  to  mmap  any  file  on  system  with
89       attribute  file_type,  you must turn on the domain_can_mmap_files bool‐
90       ean. Enabled by default.
91
92       setsebool -P domain_can_mmap_files 1
93
94
95
96       If you want to allow all domains write to kmsg_device, while kernel  is
97       executed  with  systemd.log_target=kmsg parameter, you must turn on the
98       domain_can_write_kmsg boolean. Disabled by default.
99
100       setsebool -P domain_can_write_kmsg 1
101
102
103
104       If you want to allow all domains to use other domains file descriptors,
105       you must turn on the domain_fd_use boolean. Enabled by default.
106
107       setsebool -P domain_fd_use 1
108
109
110
111       If  you  want to allow all domains to have the kernel load modules, you
112       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
113       default.
114
115       setsebool -P domain_kernel_load_modules 1
116
117
118
119       If you want to allow all domains to execute in fips_mode, you must turn
120       on the fips_mode boolean. Enabled by default.
121
122       setsebool -P fips_mode 1
123
124
125
126       If you want to enable reading of urandom for all domains, you must turn
127       on the global_ssp boolean. Disabled by default.
128
129       setsebool -P global_ssp 1
130
131
132
133       If  you  want  to control the ability to mmap a low area of the address
134       space, as configured by /proc/sys/vm/mmap_min_addr, you  must  turn  on
135       the mmap_low_allowed boolean. Disabled by default.
136
137       setsebool -P mmap_low_allowed 1
138
139
140
141       If  you  want  to  disable  kernel module loading, you must turn on the
142       secure_mode_insmod boolean. Enabled by default.
143
144       setsebool -P secure_mode_insmod 1
145
146
147
148       If you want to boolean to determine whether the system permits  loading
149       policy,  setting enforcing mode, and changing boolean values.  Set this
150       to true and you have to reboot to set it back, you  must  turn  on  the
151       secure_mode_policyload boolean. Enabled by default.
152
153       setsebool -P secure_mode_policyload 1
154
155
156
157       If  you  want to allow unconfined executables to make their heap memory
158       executable.  Doing this is a really  bad  idea.  Probably  indicates  a
159       badly  coded  executable, but could indicate an attack. This executable
160       should  be  reported  in  bugzilla,  you  must  turn  on   the   selin‐
161       uxuser_execheap boolean. Disabled by default.
162
163       setsebool -P selinuxuser_execheap 1
164
165
166
167       If  you  want  to  allow  all  unconfined  executables to use libraries
168       requiring text relocation that are  not  labeled  textrel_shlib_t,  you
169       must turn on the selinuxuser_execmod boolean. Enabled by default.
170
171       setsebool -P selinuxuser_execmod 1
172
173
174
175       If  you  want  to allow unconfined executables to make their stack exe‐
176       cutable.  This should never, ever be necessary.  Probably  indicates  a
177       badly  coded  executable, but could indicate an attack. This executable
178       should be reported in bugzilla, you must turn on the  selinuxuser_exec‐
179       stack boolean. Enabled by default.
180
181       setsebool -P selinuxuser_execstack 1
182
183
184
185       If you want to support X userspace object manager, you must turn on the
186       xserver_object_manager boolean. Enabled by default.
187
188       setsebool -P xserver_object_manager 1
189
190
191

MANAGED FILES

193       The SELinux process type unconfined_service_t can manage files  labeled
194       with  the following file types.  The paths listed are the default paths
195       for these file types.  Note the processes UID still need  to  have  DAC
196       permissions.
197
198       file_type
199
200            all files on the system
201
202

COMMANDS

204       semanage  fcontext  can also be used to manipulate default file context
205       mappings.
206
207       semanage permissive can also be used to manipulate  whether  or  not  a
208       process type is permissive.
209
210       semanage  module can also be used to enable/disable/install/remove pol‐
211       icy modules.
212
213       semanage boolean can also be used to manipulate the booleans
214
215
216       system-config-selinux is a GUI tool available to customize SELinux pol‐
217       icy settings.
218
219

AUTHOR

221       This manual page was auto-generated using sepolicy manpage .
222
223

SEE ALSO

225       selinux(8),    unconfined_service(8),    semanage(8),    restorecon(8),
226       chcon(1), sepolicy(8) , setsebool(8)
227
228
229
230unconfined_service                 19-04-25      unconfined_service_selinux(8)
Impressum