1livecd_selinux(8)            SELinux Policy livecd           livecd_selinux(8)
2
3
4

NAME

6       livecd_selinux  -  Security  Enhanced  Linux Policy for the livecd pro‐
7       cesses
8

DESCRIPTION

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

ENTRYPOINTS

24       The  livecd_t  SELinux  type  can  be  entered via the file_type, unla‐
25       beled_t,  proc_type,   filesystem_type,   mtrr_device_t,   sysctl_type,
26       livecd_exec_t file types.
27
28       The default entrypoint paths for the livecd_t domain are the following:
29
30       all files on the system, /dev/cpu/mtrr, /usr/bin/livecd-creator
31

PROCESS TYPES

33       SELinux defines process types (domains) for each process running on the
34       system
35
36       You can see the context of a process using the -Z option to ps
37
38       Policy governs the access confined processes have  to  files.   SELinux
39       livecd  policy  is  very  flexible allowing users to setup their livecd
40       processes in as secure a method as possible.
41
42       The following process types are defined for livecd:
43
44       livecd_t
45
46       Note: semanage permissive -a livecd_t can be used to make  the  process
47       type  livecd_t  permissive.  SELinux does not deny access to permissive
48       process types, but the AVC (SELinux denials) messages are still  gener‐
49       ated.
50
51

BOOLEANS

53       SELinux  policy is customizable based on least access required.  livecd
54       policy is extremely flexible and has several booleans that allow you to
55       manipulate the policy and run livecd with the tightest access possible.
56
57
58
59       If you want to allow all domains to use other domains file descriptors,
60       you must turn on the allow_domain_fd_use boolean. Enabled by default.
61
62       setsebool -P allow_domain_fd_use 1
63
64
65
66       If you want to allow unconfined executables to make their  heap  memory
67       executable.   Doing  this  is  a  really bad idea. Probably indicates a
68       badly coded executable, but could indicate an attack.  This  executable
69       should  be  reported  in  bugzilla, you must turn on the allow_execheap
70       boolean. Disabled by default.
71
72       setsebool -P allow_execheap 1
73
74
75
76       If you want to allow unconfined executables to map a memory  region  as
77       both  executable  and  writable,  this  is dangerous and the executable
78       should be reported in bugzilla), you must  turn  on  the  allow_execmem
79       boolean. Enabled by default.
80
81       setsebool -P allow_execmem 1
82
83
84
85       If  you  want  to  allow  all  unconfined  executables to use libraries
86       requiring text relocation that are not  labeled  textrel_shlib_t),  you
87       must turn on the allow_execmod boolean. Enabled by default.
88
89       setsebool -P allow_execmod 1
90
91
92
93       If  you  want  to allow unconfined executables to make their stack exe‐
94       cutable.  This should never, ever be necessary.  Probably  indicates  a
95       badly  coded  executable, but could indicate an attack. This executable
96       should be reported in bugzilla), you must turn on  the  allow_execstack
97       boolean. Enabled by default.
98
99       setsebool -P allow_execstack 1
100
101
102
103       If  you want to allow sysadm to debug or ptrace all processes, you must
104       turn on the allow_ptrace boolean. Disabled by default.
105
106       setsebool -P allow_ptrace 1
107
108
109
110       If you want to allow all domains to have the kernel load  modules,  you
111       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
112       default.
113
114       setsebool -P domain_kernel_load_modules 1
115
116
117
118       If you want to allow all domains to execute in fips_mode, you must turn
119       on the fips_mode boolean. Enabled by default.
120
121       setsebool -P fips_mode 1
122
123
124
125       If you want to enable reading of urandom for all domains, you must turn
126       on the global_ssp boolean. Disabled by default.
127
128       setsebool -P global_ssp 1
129
130
131
132       If you want to allow certain domains to map low memory in  the  kernel,
133       you must turn on the mmap_low_allowed boolean. Disabled by default.
134
135       setsebool -P mmap_low_allowed 1
136
137
138
139       If  you want to boolean to determine whether the system permits loading
140       policy, setting enforcing mode, and changing boolean values.  Set  this
141       to  true  and  you  have to reboot to set it back, you must turn on the
142       secure_mode_policyload boolean. Disabled by default.
143
144       setsebool -P secure_mode_policyload 1
145
146
147
148       If you want to support X userspace object manager, you must turn on the
149       xserver_object_manager boolean. Disabled by default.
150
151       setsebool -P xserver_object_manager 1
152
153
154

MANAGED FILES

156       The  SELinux  process  type  livecd_t can manage files labeled with the
157       following file types.  The paths listed are the default paths for these
158       file types.  Note the processes UID still need to have DAC permissions.
159
160       file_type
161
162            all files on the system
163
164

FILE CONTEXTS

166       SELinux requires files to have an extended attribute to define the file
167       type.
168
169       You can see the context of a file using the -Z option to ls
170
171       Policy governs the access  confined  processes  have  to  these  files.
172       SELinux  livecd  policy  is very flexible allowing users to setup their
173       livecd processes in as secure a method as possible.
174
175       STANDARD FILE CONTEXT
176
177       SELinux defines the file context types for the livecd, if you wanted to
178       store  files  with  these types in a diffent paths, you need to execute
179       the semanage command  to  sepecify  alternate  labeling  and  then  use
180       restorecon to put the labels on disk.
181
182       semanage fcontext -a -t livecd_tmp_t '/srv/mylivecd_content(/.*)?'
183       restorecon -R -v /srv/mylivecd_content
184
185       Note:  SELinux  often  uses  regular expressions to specify labels that
186       match multiple files.
187
188       The following file types are defined for livecd:
189
190
191
192       livecd_exec_t
193
194       - Set files with the livecd_exec_t type, if you want to  transition  an
195       executable to the livecd_t domain.
196
197
198
199       livecd_tmp_t
200
201       -  Set  files  with  the livecd_tmp_t type, if you want to store livecd
202       temporary files in the /tmp directories.
203
204
205
206       Note: File context can be temporarily modified with the chcon  command.
207       If  you want to permanently change the file context you need to use the
208       semanage fcontext command.  This will modify the SELinux labeling data‐
209       base.  You will need to use restorecon to apply the labels.
210
211

COMMANDS

213       semanage  fcontext  can also be used to manipulate default file context
214       mappings.
215
216       semanage permissive can also be used to manipulate  whether  or  not  a
217       process type is permissive.
218
219       semanage  module can also be used to enable/disable/install/remove pol‐
220       icy modules.
221
222       semanage boolean can also be used to manipulate the booleans
223
224
225       system-config-selinux is a GUI tool available to customize SELinux pol‐
226       icy settings.
227
228

AUTHOR

230       This manual page was auto-generated using sepolicy manpage .
231
232

SEE ALSO

234       selinux(8),  livecd(8),  semanage(8),  restorecon(8), chcon(1) , setse‐
235       bool(8)
236
237
238
239livecd                             15-06-03                  livecd_selinux(8)
Impressum