1postgrey_selinux(8)         SELinux Policy postgrey        postgrey_selinux(8)
2
3
4

NAME

6       postgrey_selinux - Security Enhanced Linux Policy for the postgrey pro‐
7       cesses
8

DESCRIPTION

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

ENTRYPOINTS

24       The postgrey_t SELinux type can be entered via the postgrey_exec_t file
25       type.
26
27       The default entrypoint paths for the postgrey_t domain are the  follow‐
28       ing:
29
30       /usr/sbin/postgrey
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       postgrey policy is very flexible allowing users to setup their postgrey
40       processes in as secure a method as possible.
41
42       The following process types are defined for postgrey:
43
44       postgrey_t
45
46       Note: semanage permissive -a postgrey_t can be used to make the process
47       type  postgrey_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.  post‐
54       grey policy is extremely flexible and has several booleans  that  allow
55       you  to manipulate the policy and run postgrey with the tightest access
56       possible.
57
58
59
60       If you want to allow all domains to execute in fips_mode, you must turn
61       on the fips_mode boolean. Enabled by default.
62
63       setsebool -P fips_mode 1
64
65
66

PORT TYPES

68       SELinux defines port types to represent TCP and UDP ports.
69
70       You  can  see  the  types associated with a port by using the following
71       command:
72
73       semanage port -l
74
75
76       Policy governs the access  confined  processes  have  to  these  ports.
77       SELinux  postgrey policy is very flexible allowing users to setup their
78       postgrey processes in as secure a method as possible.
79
80       The following port types are defined for postgrey:
81
82
83       postgrey_port_t
84
85
86
87       Default Defined Ports:
88                 tcp 60000
89

MANAGED FILES

91       The SELinux process type postgrey_t can manage files labeled  with  the
92       following file types.  The paths listed are the default paths for these
93       file types.  Note the processes UID still need to have DAC permissions.
94
95       cluster_conf_t
96
97            /etc/cluster(/.*)?
98
99       cluster_var_lib_t
100
101            /var/lib/pcsd(/.*)?
102            /var/lib/cluster(/.*)?
103            /var/lib/openais(/.*)?
104            /var/lib/pengine(/.*)?
105            /var/lib/corosync(/.*)?
106            /usr/lib/heartbeat(/.*)?
107            /var/lib/heartbeat(/.*)?
108            /var/lib/pacemaker(/.*)?
109
110       cluster_var_run_t
111
112            /var/run/crm(/.*)?
113            /var/run/cman_.*
114            /var/run/rsctmp(/.*)?
115            /var/run/aisexec.*
116            /var/run/heartbeat(/.*)?
117            /var/run/corosync-qnetd(/.*)?
118            /var/run/corosync-qdevice(/.*)?
119            /var/run/corosync.pid
120            /var/run/cpglockd.pid
121            /var/run/rgmanager.pid
122            /var/run/cluster/rgmanager.sk
123
124       postfix_spool_type
125
126
127       postgrey_spool_t
128
129            /var/spool/postfix/postgrey(/.*)?
130
131       postgrey_var_lib_t
132
133            /var/lib/postgrey(/.*)?
134
135       postgrey_var_run_t
136
137            /var/run/postgrey(/.*)?
138            /var/run/postgrey.pid
139
140       root_t
141
142            /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
143            /
144            /initrd
145
146

FILE CONTEXTS

148       SELinux requires files to have an extended attribute to define the file
149       type.
150
151       You can see the context of a file using the -Z option to ls
152
153       Policy  governs  the  access  confined  processes  have to these files.
154       SELinux postgrey policy is very flexible allowing users to setup  their
155       postgrey processes in as secure a method as possible.
156
157       EQUIVALENCE DIRECTORIES
158
159
160       postgrey  policy stores data with multiple different file context types
161       under the /var/run/postgrey directory.  If you would like to store  the
162       data  in a different directory you can use the semanage command to cre‐
163       ate an equivalence mapping.  If you wanted to store this data under the
164       /srv directory you would execute the following command:
165
166       semanage fcontext -a -e /var/run/postgrey /srv/postgrey
167       restorecon -R -v /srv/postgrey
168
169       STANDARD FILE CONTEXT
170
171       SELinux  defines the file context types for the postgrey, if you wanted
172       to store files with these types in a diffent paths, you need to execute
173       the  semanage  command  to  sepecify  alternate  labeling  and then use
174       restorecon to put the labels on disk.
175
176       semanage  fcontext  -a  -t   postgrey_var_run_t   '/srv/mypostgrey_con‐
177       tent(/.*)?'
178       restorecon -R -v /srv/mypostgrey_content
179
180       Note:  SELinux  often  uses  regular expressions to specify labels that
181       match multiple files.
182
183       The following file types are defined for postgrey:
184
185
186
187       postgrey_etc_t
188
189       - Set files with the postgrey_etc_t type, if you want to store postgrey
190       files in the /etc directories.
191
192
193
194       postgrey_exec_t
195
196       - Set files with the postgrey_exec_t type, if you want to transition an
197       executable to the postgrey_t domain.
198
199
200
201       postgrey_initrc_exec_t
202
203       - Set files with the postgrey_initrc_exec_t type, if you want to  tran‐
204       sition an executable to the postgrey_initrc_t domain.
205
206
207
208       postgrey_spool_t
209
210       -  Set  files  with the postgrey_spool_t type, if you want to store the
211       postgrey files under the /var/spool directory.
212
213
214
215       postgrey_var_lib_t
216
217       - Set files with the postgrey_var_lib_t type, if you want to store  the
218       postgrey files under the /var/lib directory.
219
220
221
222       postgrey_var_run_t
223
224       -  Set files with the postgrey_var_run_t type, if you want to store the
225       postgrey files under the /run or /var/run directory.
226
227
228       Paths:
229            /var/run/postgrey(/.*)?, /var/run/postgrey.pid
230
231
232       Note: File context can be temporarily modified with the chcon  command.
233       If  you want to permanently change the file context you need to use the
234       semanage fcontext command.  This will modify the SELinux labeling data‐
235       base.  You will need to use restorecon to apply the labels.
236
237

COMMANDS

239       semanage  fcontext  can also be used to manipulate default file context
240       mappings.
241
242       semanage permissive can also be used to manipulate  whether  or  not  a
243       process type is permissive.
244
245       semanage  module can also be used to enable/disable/install/remove pol‐
246       icy modules.
247
248       semanage port can also be used to manipulate the port definitions
249
250       semanage boolean can also be used to manipulate the booleans
251
252
253       system-config-selinux is a GUI tool available to customize SELinux pol‐
254       icy settings.
255
256

AUTHOR

258       This manual page was auto-generated using sepolicy manpage .
259
260

SEE ALSO

262       selinux(8),  postgrey(8),  semanage(8), restorecon(8), chcon(1), sepol‐
263       icy(8), setsebool(8)
264
265
266
267postgrey                           21-03-26                postgrey_selinux(8)
Impressum