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. Enabled 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 nfs_t
85
86
87 uml_rw_t
88
89 /home/[^/]+/.uml(/.*)?
90
91
93 SELinux requires files to have an extended attribute to define the file
94 type.
95
96 You can see the context of a file using the -Z option to ls
97
98 Policy governs the access confined processes have to these files.
99 SELinux uml policy is very flexible allowing users to setup their uml
100 processes in as secure a method as possible.
101
102 STANDARD FILE CONTEXT
103
104 SELinux defines the file context types for the uml, if you wanted to
105 store files with these types in a diffent paths, you need to execute
106 the semanage command to sepecify alternate labeling and then use
107 restorecon to put the labels on disk.
108
109 semanage fcontext -a -t uml_switch_var_run_t '/srv/myuml_content(/.*)?'
110 restorecon -R -v /srv/myuml_content
111
112 Note: SELinux often uses regular expressions to specify labels that
113 match multiple files.
114
115 The following file types are defined for uml:
116
117
118
119 uml_exec_t
120
121 - Set files with the uml_exec_t type, if you want to transition an exe‐
122 cutable to the uml_t domain.
123
124
125
126 uml_ro_t
127
128 - Set files with the uml_ro_t type, if you want to treat the files as
129 uml read/only content.
130
131
132
133 uml_rw_t
134
135 - Set files with the uml_rw_t type, if you want to treat the files as
136 uml read/write content.
137
138
139
140 uml_switch_exec_t
141
142 - Set files with the uml_switch_exec_t type, if you want to transition
143 an executable to the uml_switch_t domain.
144
145
146
147 uml_switch_var_run_t
148
149 - Set files with the uml_switch_var_run_t type, if you want to store
150 the uml switch files under the /run or /var/run directory.
151
152
153
154 uml_tmp_t
155
156 - Set files with the uml_tmp_t type, if you want to store uml temporary
157 files in the /tmp directories.
158
159
160
161 uml_tmpfs_t
162
163 - Set files with the uml_tmpfs_t type, if you want to store uml files
164 on a tmpfs file system.
165
166
167
168 Note: File context can be temporarily modified with the chcon command.
169 If you want to permanently change the file context you need to use the
170 semanage fcontext command. This will modify the SELinux labeling data‐
171 base. You will need to use restorecon to apply the labels.
172
173
175 semanage fcontext can also be used to manipulate default file context
176 mappings.
177
178 semanage permissive can also be used to manipulate whether or not a
179 process type is permissive.
180
181 semanage module can also be used to enable/disable/install/remove pol‐
182 icy modules.
183
184 semanage boolean can also be used to manipulate the booleans
185
186
187 system-config-selinux is a GUI tool available to customize SELinux pol‐
188 icy settings.
189
190
192 This manual page was auto-generated using sepolicy manpage .
193
194
196 selinux(8), uml(8), semanage(8), restorecon(8), chcon(1), sepolicy(8),
197 setsebool(8), uml_switch_selinux(8), uml_switch_selinux(8)
198
199
200
201uml 21-03-26 uml_selinux(8)