1rpm_script_selinux(8)      SELinux Policy rpm_script     rpm_script_selinux(8)
2
3
4

NAME

6       rpm_script_selinux  - Security Enhanced Linux Policy for the rpm_script
7       processes
8

DESCRIPTION

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

ENTRYPOINTS

24       The  rpm_script_t  SELinux  type  can  be entered via the usr_t, ldcon‐
25       fig_exec_t, bin_t, shell_exec_t file types.
26
27       The default entrypoint paths for the rpm_script_t domain are  the  fol‐
28       lowing:
29
30       All  executeables  with the default executable label, usually stored in
31       /usr/bin and /usr/sbin.   /opt/.*,  /usr/.*,  /emul/.*,  /export(/.*)?,
32       /ostree(/.*)?,       /usr/doc(/.*)?/lib(/.*)?,      /usr/inclu.e(/.*)?,
33       /usr/share/rpm(/.*)?,   /usr/share/doc(/.*)?/README.*,    /usr/lib/mod‐
34       ules(/.*)/vmlinuz, /usr/lib/modules(/.*)/initramfs.img, /usr/lib/sysim‐
35       age(/.*)?, /usr/lib/ostree-boot(/.*)?, /opt,  /usr,  /emul,  /sbin/sln,
36       /usr/sbin/sln,    /sbin/ldconfig,    /usr/sbin/ldconfig,    /bin/d?ash,
37       /bin/ksh.*, /bin/zsh.*, /usr/bin/d?ash, /usr/bin/ksh.*, /usr/bin/zsh.*,
38       /bin/esh,   /bin/bash,   /bin/fish,  /bin/mksh,  /bin/sash,  /bin/tcsh,
39       /bin/yash,  /bin/bash2,  /usr/bin/esh,  /sbin/nologin,   /usr/bin/bash,
40       /usr/bin/fish,     /usr/bin/mksh,     /usr/bin/sash,     /usr/bin/tcsh,
41       /usr/bin/yash,   /usr/bin/bash2,    /usr/sbin/sesh,    /usr/sbin/smrsh,
42       /usr/bin/scponly,  /usr/libexec/sesh,  /usr/sbin/nologin, /usr/bin/git-
43       shell,  /usr/sbin/scponlyc,  /usr/libexec/sudo/sesh,  /usr/bin/cockpit-
44       bridge, /usr/libexec/cockpit-agent, /usr/libexec/git-core/git-shell
45

PROCESS TYPES

47       SELinux defines process types (domains) for each process running on the
48       system
49
50       You can see the context of a process using the -Z option to ps
51
52       Policy governs the access confined processes have  to  files.   SELinux
53       rpm_script  policy  is  very  flexible  allowing  users  to setup their
54       rpm_script processes in as secure a method as possible.
55
56       The following process types are defined for rpm_script:
57
58       rpm_script_t
59
60       Note: semanage permissive -a rpm_script_t  can  be  used  to  make  the
61       process  type  rpm_script_t permissive. SELinux does not deny access to
62       permissive process types, but the AVC (SELinux  denials)  messages  are
63       still generated.
64
65

BOOLEANS

67       SELinux   policy  is  customizable  based  on  least  access  required.
68       rpm_script policy is extremely flexible and has several  booleans  that
69       allow you to manipulate the policy and run rpm_script with the tightest
70       access possible.
71
72
73
74       If you want to allow users to resolve user passwd entries directly from
75       ldap  rather  then  using  a  sssd server, you must turn on the authlo‐
76       gin_nsswitch_use_ldap boolean. Disabled by default.
77
78       setsebool -P authlogin_nsswitch_use_ldap 1
79
80
81
82       If you want to deny user domains applications to map a memory region as
83       both  executable  and  writable,  this  is dangerous and the executable
84       should be reported in bugzilla, you must turn on the deny_execmem bool‐
85       ean. Enabled by default.
86
87       setsebool -P deny_execmem 1
88
89
90
91       If you want to allow all domains to execute in fips_mode, you must turn
92       on the fips_mode boolean. Enabled by default.
93
94       setsebool -P fips_mode 1
95
96
97
98       If you want to allow confined applications to run  with  kerberos,  you
99       must turn on the kerberos_enabled boolean. Disabled by default.
100
101       setsebool -P kerberos_enabled 1
102
103
104
105       If  you  want  to control the ability to mmap a low area of the address
106       space, as configured by /proc/sys/vm/mmap_min_addr, you  must  turn  on
107       the mmap_low_allowed boolean. Disabled by default.
108
109       setsebool -P mmap_low_allowed 1
110
111
112
113       If  you  want  to  allow  system  to run with NIS, you must turn on the
114       nis_enabled boolean. Disabled by default.
115
116       setsebool -P nis_enabled 1
117
118
119
120       If you want to allow confined applications to use nscd  shared  memory,
121       you must turn on the nscd_use_shm boolean. Disabled by default.
122
123       setsebool -P nscd_use_shm 1
124
125
126
127       If  you  want  to  disable  kernel module loading, you must turn on the
128       secure_mode_insmod boolean. Enabled by default.
129
130       setsebool -P secure_mode_insmod 1
131
132
133
134       If you want to allow unconfined executables to make their  heap  memory
135       executable.   Doing  this  is  a  really bad idea. Probably indicates a
136       badly coded executable, but could indicate an attack.  This  executable
137       should   be   reported  in  bugzilla,  you  must  turn  on  the  selin‐
138       uxuser_execheap boolean. Disabled by default.
139
140       setsebool -P selinuxuser_execheap 1
141
142
143
144       If you want to allow unconfined executables to make  their  stack  exe‐
145       cutable.   This  should  never, ever be necessary. Probably indicates a
146       badly coded executable, but could indicate an attack.  This  executable
147       should  be reported in bugzilla, you must turn on the selinuxuser_exec‐
148       stack boolean. Disabled by default.
149
150       setsebool -P selinuxuser_execstack 1
151
152
153

MANAGED FILES

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

COMMANDS

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

AUTHOR

182       This manual page was auto-generated using sepolicy manpage .
183
184

SEE ALSO

186       selinux(8), rpm_script(8), semanage(8), restorecon(8), chcon(1), sepol‐
187       icy(8), setsebool(8)
188
189
190
191rpm_script                         19-12-02              rpm_script_selinux(8)
Impressum