1uml_selinux(8) SELinux Policy uml uml_selinux(8)
2
3
4
6 uml_selinux - Security Enhanced Linux Policy for the uml processes
7
9 Security-Enhanced Linux secures the uml processes via flexible manda‐
10 tory access control.
11
12 The uml processes execute with the uml_t SELinux type. You can check if
13 you have these processes running by executing the ps command with the
14 -Z qualifier.
15
16 For example:
17
18 ps -eZ | grep uml_t
19
20
21
23 The uml_t SELinux type can be entered via the uml_exec_t file type.
24
25 The default entrypoint paths for the uml_t domain are the following:
26
27
28
30 SELinux defines process types (domains) for each process running on the
31 system
32
33 You can see the context of a process using the -Z option to ps
34
35 Policy governs the access confined processes have to files. SELinux
36 uml policy is very flexible allowing users to setup their uml processes
37 in as secure a method as possible.
38
39 The following process types are defined for uml:
40
41 uml_t, uml_switch_t
42
43 Note: semanage permissive -a uml_t can be used to make the process type
44 uml_t permissive. SELinux does not deny access to permissive process
45 types, but the AVC (SELinux denials) messages are still generated.
46
47
49 SELinux policy is customizable based on least access required. uml
50 policy is extremely flexible and has several booleans that allow you to
51 manipulate the policy and run uml with the tightest access possible.
52
53
54
55 If you want to allow all domains to execute in fips_mode, you must turn
56 on the fips_mode boolean. Enabled by default.
57
58 setsebool -P fips_mode 1
59
60
61
62 If you want to support NFS home directories, you must turn on the
63 use_nfs_home_dirs boolean. Disabled by default.
64
65 setsebool -P use_nfs_home_dirs 1
66
67
68
69 If you want to support SAMBA home directories, you must turn on the
70 use_samba_home_dirs boolean. Disabled by default.
71
72 setsebool -P use_samba_home_dirs 1
73
74
75
77 The SELinux process type uml_t can manage files labeled with the fol‐
78 lowing file types. The paths listed are the default paths for these
79 file types. Note the processes UID still need to have DAC permissions.
80
81 cifs_t
82
83
84 krb5_host_rcache_t
85
86 /var/tmp/krb5_0.rcache2
87 /var/cache/krb5rcache(/.*)?
88 /var/tmp/nfs_0
89 /var/tmp/DNS_25
90 /var/tmp/host_0
91 /var/tmp/imap_0
92 /var/tmp/HTTP_23
93 /var/tmp/HTTP_48
94 /var/tmp/ldap_55
95 /var/tmp/ldap_487
96 /var/tmp/ldapmap1_0
97
98 nfs_t
99
100
101 uml_rw_t
102
103 /home/[^/]+/.uml(/.*)?
104
105 uml_tmp_t
106
107
108 uml_tmpfs_t
109
110
111
113 SELinux requires files to have an extended attribute to define the file
114 type.
115
116 You can see the context of a file using the -Z option to ls
117
118 Policy governs the access confined processes have to these files.
119 SELinux uml policy is very flexible allowing users to setup their uml
120 processes in as secure a method as possible.
121
122 STANDARD FILE CONTEXT
123
124 SELinux defines the file context types for the uml, if you wanted to
125 store files with these types in a diffent paths, you need to execute
126 the semanage command to sepecify alternate labeling and then use re‐
127 storecon to put the labels on disk.
128
129 semanage fcontext -a -t uml_switch_var_run_t '/srv/myuml_content(/.*)?'
130 restorecon -R -v /srv/myuml_content
131
132 Note: SELinux often uses regular expressions to specify labels that
133 match multiple files.
134
135 The following file types are defined for uml:
136
137
138
139 uml_exec_t
140
141 - Set files with the uml_exec_t type, if you want to transition an exe‐
142 cutable to the uml_t domain.
143
144
145
146 uml_ro_t
147
148 - Set files with the uml_ro_t type, if you want to treat the files as
149 uml read/only content.
150
151
152
153 uml_rw_t
154
155 - Set files with the uml_rw_t type, if you want to treat the files as
156 uml read/write content.
157
158
159
160 uml_switch_exec_t
161
162 - Set files with the uml_switch_exec_t type, if you want to transition
163 an executable to the uml_switch_t domain.
164
165
166
167 uml_switch_var_run_t
168
169 - Set files with the uml_switch_var_run_t type, if you want to store
170 the uml switch files under the /run or /var/run directory.
171
172
173
174 uml_tmp_t
175
176 - Set files with the uml_tmp_t type, if you want to store uml temporary
177 files in the /tmp directories.
178
179
180
181 uml_tmpfs_t
182
183 - Set files with the uml_tmpfs_t type, if you want to store uml files
184 on a tmpfs file system.
185
186
187
188 Note: File context can be temporarily modified with the chcon command.
189 If you want to permanently change the file context you need to use the
190 semanage fcontext command. This will modify the SELinux labeling data‐
191 base. You will need to use restorecon to apply the labels.
192
193
195 semanage fcontext can also be used to manipulate default file context
196 mappings.
197
198 semanage permissive can also be used to manipulate whether or not a
199 process type is permissive.
200
201 semanage module can also be used to enable/disable/install/remove pol‐
202 icy modules.
203
204 semanage boolean can also be used to manipulate the booleans
205
206
207 system-config-selinux is a GUI tool available to customize SELinux pol‐
208 icy settings.
209
210
212 This manual page was auto-generated using sepolicy manpage .
213
214
216 selinux(8), uml(8), semanage(8), restorecon(8), chcon(1), sepolicy(8),
217 setsebool(8), uml_switch_selinux(8), uml_switch_selinux(8)
218
219
220
221uml 21-06-09 uml_selinux(8)