1install_selinux(8)          SELinux Policy install          install_selinux(8)
2
3
4

NAME

6       install_selinux  -  Security Enhanced Linux Policy for the install pro‐
7       cesses
8

DESCRIPTION

10       Security-Enhanced Linux secures  the  install  processes  via  flexible
11       mandatory access control.
12
13       The  install processes execute with the install_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 install_t
20
21
22

ENTRYPOINTS

24       The  install_t  SELinux type can be entered via the install_exec_t file
25       type.
26
27       The default entrypoint paths for the install_t domain are  the  follow‐
28       ing:
29
30       /usr/bin/bootc,  /usr/bin/ostree,  /usr/sbin/anaconda, /usr/bin/rpm-os‐
31       tree,         /usr/bin/initial-setup,         /usr/libexec/rpm-ostreed,
32       /usr/libexec/anaconda/anaconda-yum
33

PROCESS TYPES

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

BOOLEANS

55       SELinux policy is customizable based on least access required.  install
56       policy is extremely flexible and has several booleans that allow you to
57       manipulate  the  policy and run install with the tightest access possi‐
58       ble.
59
60
61
62       If you want to deny user domains applications to map a memory region as
63       both  executable  and  writable,  this  is dangerous and the executable
64       should be reported in bugzilla, you must turn on the deny_execmem bool‐
65       ean. Disabled by default.
66
67       setsebool -P deny_execmem 1
68
69
70
71       If  you  want  to control the ability to mmap a low area of the address
72       space, as configured by /proc/sys/vm/mmap_min_addr, you  must  turn  on
73       the mmap_low_allowed boolean. Disabled by default.
74
75       setsebool -P mmap_low_allowed 1
76
77
78
79       If  you want to disable kernel module loading, you must turn on the se‐
80       cure_mode_insmod boolean. Disabled by default.
81
82       setsebool -P secure_mode_insmod 1
83
84
85
86       If you want to allow unconfined executables to make their  heap  memory
87       executable.   Doing  this  is  a  really bad idea. Probably indicates a
88       badly coded executable, but could indicate an attack.  This  executable
89       should  be  reported  in bugzilla, you must turn on the selinuxuser_ex‐
90       echeap boolean. Disabled by default.
91
92       setsebool -P selinuxuser_execheap 1
93
94
95
96       If you want to allow unconfined executables to make  their  stack  exe‐
97       cutable.   This  should  never, ever be necessary. Probably indicates a
98       badly coded executable, but could indicate an attack.  This  executable
99       should  be reported in bugzilla, you must turn on the selinuxuser_exec‐
100       stack boolean. Enabled by default.
101
102       setsebool -P selinuxuser_execstack 1
103
104
105

MANAGED FILES

107       The SELinux process type install_t can manage files  labeled  with  the
108       following file types.  The paths listed are the default paths for these
109       file types.  Note the processes UID still need to have DAC permissions.
110
111       file_type
112
113            all files on the system
114
115

FILE CONTEXTS

117       SELinux requires files to have an extended attribute to define the file
118       type.
119
120       You can see the context of a file using the -Z option to ls
121
122       Policy  governs  the  access  confined  processes  have to these files.
123       SELinux install policy is very flexible allowing users to  setup  their
124       install processes in as secure a method as possible.
125
126       STANDARD FILE CONTEXT
127
128       SELinux  defines  the file context types for the install, if you wanted
129       to store files with these types in a different paths, you need to  exe‐
130       cute  the  semanage  command to specify alternate labeling and then use
131       restorecon to put the labels on disk.
132
133       semanage fcontext -a -t install_exec_t '/srv/install/content(/.*)?'
134       restorecon -R -v /srv/myinstall_content
135
136       Note: SELinux often uses regular expressions  to  specify  labels  that
137       match multiple files.
138
139       The following file types are defined for install:
140
141
142
143       install_exec_t
144
145       -  Set files with the install_exec_t type, if you want to transition an
146       executable to the install_t domain.
147
148
149       Paths:
150            /usr/bin/bootc, /usr/bin/ostree, /usr/sbin/anaconda, /usr/bin/rpm-
151            ostree,      /usr/bin/initial-setup,     /usr/libexec/rpm-ostreed,
152            /usr/libexec/anaconda/anaconda-yum
153
154
155       install_var_run_t
156
157       - Set files with the install_var_run_t type, if you want to  store  the
158       install files under the /run or /var/run directory.
159
160
161
162       Note:  File context can be temporarily modified with the chcon command.
163       If you want to permanently change the file context you need to use  the
164       semanage fcontext command.  This will modify the SELinux labeling data‐
165       base.  You will need to use restorecon to apply the labels.
166
167

COMMANDS

169       semanage fcontext can also be used to manipulate default  file  context
170       mappings.
171
172       semanage  permissive  can  also  be used to manipulate whether or not a
173       process type is permissive.
174
175       semanage module can also be used to enable/disable/install/remove  pol‐
176       icy modules.
177
178       semanage boolean can also be used to manipulate the booleans
179
180
181       system-config-selinux is a GUI tool available to customize SELinux pol‐
182       icy settings.
183
184

AUTHOR

186       This manual page was auto-generated using sepolicy manpage .
187
188

SEE ALSO

190       selinux(8), install(8), semanage(8),  restorecon(8),  chcon(1),  sepol‐
191       icy(8), setsebool(8)
192
193
194
195install                            23-10-20                 install_selinux(8)
Impressum