1mono_selinux(8) SELinux Policy mono mono_selinux(8)
2
3
4
6 mono_selinux - Security Enhanced Linux Policy for the mono processes
7
9 Security-Enhanced Linux secures the mono processes via flexible manda‐
10 tory access control.
11
12 The mono processes execute with the mono_t SELinux type. You can check
13 if you have these processes running by executing the ps command with
14 the -Z qualifier.
15
16 For example:
17
18 ps -eZ | grep mono_t
19
20
21
23 The mono_t SELinux type can be entered via the file_type, unlabeled_t,
24 proc_type, filesystem_type, mono_exec_t, mtrr_device_t, sysctl_type
25 file types.
26
27 The default entrypoint paths for the mono_t domain are the following:
28
29 all files on the system, /usr/bin/mono.*, /dev/cpu/mtrr
30
32 SELinux defines process types (domains) for each process running on the
33 system
34
35 You can see the context of a process using the -Z option to ps
36
37 Policy governs the access confined processes have to files. SELinux
38 mono policy is very flexible allowing users to setup their mono pro‐
39 cesses in as secure a method as possible.
40
41 The following process types are defined for mono:
42
43 mono_t
44
45 Note: semanage permissive -a mono_t can be used to make the process
46 type mono_t permissive. SELinux does not deny access to permissive
47 process types, but the AVC (SELinux denials) messages are still gener‐
48 ated.
49
50
52 SELinux policy is customizable based on least access required. mono
53 policy is extremely flexible and has several booleans that allow you to
54 manipulate the policy and run mono with the tightest access possible.
55
56
57
58 If you want to allow all daemons the ability to read/write terminals,
59 you must turn on the allow_daemons_use_tty boolean. Disabled by
60 default.
61
62 setsebool -P allow_daemons_use_tty 1
63
64
65
66 If you want to allow all domains to use other domains file descriptors,
67 you must turn on the allow_domain_fd_use boolean. Enabled by default.
68
69 setsebool -P allow_domain_fd_use 1
70
71
72
73 If you want to allow unconfined executables to make their heap memory
74 executable. Doing this is a really bad idea. Probably indicates a
75 badly coded executable, but could indicate an attack. This executable
76 should be reported in bugzilla, you must turn on the allow_execheap
77 boolean. Disabled by default.
78
79 setsebool -P allow_execheap 1
80
81
82
83 If you want to allow unconfined executables to map a memory region as
84 both executable and writable, this is dangerous and the executable
85 should be reported in bugzilla), you must turn on the allow_execmem
86 boolean. Enabled by default.
87
88 setsebool -P allow_execmem 1
89
90
91
92 If you want to allow all unconfined executables to use libraries
93 requiring text relocation that are not labeled textrel_shlib_t), you
94 must turn on the allow_execmod boolean. Enabled by default.
95
96 setsebool -P allow_execmod 1
97
98
99
100 If you want to allow unconfined executables to make their stack exe‐
101 cutable. This should never, ever be necessary. Probably indicates a
102 badly coded executable, but could indicate an attack. This executable
103 should be reported in bugzilla), you must turn on the allow_execstack
104 boolean. Enabled by default.
105
106 setsebool -P allow_execstack 1
107
108
109
110 If you want to allow sysadm to debug or ptrace all processes, you must
111 turn on the allow_ptrace boolean. Disabled by default.
112
113 setsebool -P allow_ptrace 1
114
115
116
117 If you want to allow all domains to have the kernel load modules, you
118 must turn on the domain_kernel_load_modules boolean. Disabled by
119 default.
120
121 setsebool -P domain_kernel_load_modules 1
122
123
124
125 If you want to allow all domains to execute in fips_mode, you must turn
126 on the fips_mode boolean. Enabled by default.
127
128 setsebool -P fips_mode 1
129
130
131
132 If you want to enable reading of urandom for all domains, you must turn
133 on the global_ssp boolean. Disabled by default.
134
135 setsebool -P global_ssp 1
136
137
138
139 If you want to allow certain domains to map low memory in the kernel,
140 you must turn on the mmap_low_allowed boolean. Disabled by default.
141
142 setsebool -P mmap_low_allowed 1
143
144
145
146 If you want to boolean to determine whether the system permits loading
147 policy, setting enforcing mode, and changing boolean values. Set this
148 to true and you have to reboot to set it back, you must turn on the
149 secure_mode_policyload boolean. Disabled by default.
150
151 setsebool -P secure_mode_policyload 1
152
153
154
155 If you want to support X userspace object manager, you must turn on the
156 xserver_object_manager boolean. Disabled by default.
157
158 setsebool -P xserver_object_manager 1
159
160
161
163 SELinux defines port types to represent TCP and UDP ports.
164
165 You can see the types associated with a port by using the following
166 command:
167
168 semanage port -l
169
170
171 Policy governs the access confined processes have to these ports.
172 SELinux mono policy is very flexible allowing users to setup their mono
173 processes in as secure a method as possible.
174
175 The following port types are defined for mono:
176
177
178 monopd_port_t
179
180
181
182 Default Defined Ports:
183 tcp 1234
184
186 The SELinux process type mono_t can manage files labeled with the fol‐
187 lowing file types. The paths listed are the default paths for these
188 file types. Note the processes UID still need to have DAC permissions.
189
190 file_type
191
192 all files on the system
193
194
196 SELinux requires files to have an extended attribute to define the file
197 type.
198
199 You can see the context of a file using the -Z option to ls
200
201 Policy governs the access confined processes have to these files.
202 SELinux mono policy is very flexible allowing users to setup their mono
203 processes in as secure a method as possible.
204
205 The following file types are defined for mono:
206
207
208
209 mono_exec_t
210
211 - Set files with the mono_exec_t type, if you want to transition an
212 executable to the mono_t domain.
213
214
215
216 Note: File context can be temporarily modified with the chcon command.
217 If you want to permanently change the file context you need to use the
218 semanage fcontext command. This will modify the SELinux labeling data‐
219 base. You will need to use restorecon to apply the labels.
220
221
223 semanage fcontext can also be used to manipulate default file context
224 mappings.
225
226 semanage permissive can also be used to manipulate whether or not a
227 process type is permissive.
228
229 semanage module can also be used to enable/disable/install/remove pol‐
230 icy modules.
231
232 semanage port can also be used to manipulate the port definitions
233
234 semanage boolean can also be used to manipulate the booleans
235
236
237 system-config-selinux is a GUI tool available to customize SELinux pol‐
238 icy settings.
239
240
242 This manual page was auto-generated using sepolicy manpage .
243
244
246 selinux(8), mono(8), semanage(8), restorecon(8), chcon(1) , setse‐
247 bool(8)
248
249
250
251mono 15-06-03 mono_selinux(8)