1postgrey_selinux(8) SELinux Policy postgrey postgrey_selinux(8)
2
3
4
6 postgrey_selinux - Security Enhanced Linux Policy for the postgrey pro‐
7 cesses
8
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
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
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
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
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
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/pcsd-ruby.socket
118 /var/run/corosync-qnetd(/.*)?
119 /var/run/corosync-qdevice(/.*)?
120 /var/run/corosync.pid
121 /var/run/cpglockd.pid
122 /var/run/rgmanager.pid
123 /var/run/cluster/rgmanager.sk
124
125 krb5_host_rcache_t
126
127 /var/tmp/krb5_0.rcache2
128 /var/cache/krb5rcache(/.*)?
129 /var/tmp/nfs_0
130 /var/tmp/DNS_25
131 /var/tmp/host_0
132 /var/tmp/imap_0
133 /var/tmp/HTTP_23
134 /var/tmp/HTTP_48
135 /var/tmp/ldap_55
136 /var/tmp/ldap_487
137 /var/tmp/ldapmap1_0
138
139 postfix_spool_type
140
141
142 postgrey_spool_t
143
144 /var/spool/postfix/postgrey(/.*)?
145
146 postgrey_var_lib_t
147
148 /var/lib/postgrey(/.*)?
149
150 postgrey_var_run_t
151
152 /var/run/postgrey(/.*)?
153 /var/run/postgrey.pid
154
155 root_t
156
157 /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
158 /
159 /initrd
160
161
163 SELinux requires files to have an extended attribute to define the file
164 type.
165
166 You can see the context of a file using the -Z option to ls
167
168 Policy governs the access confined processes have to these files.
169 SELinux postgrey policy is very flexible allowing users to setup their
170 postgrey processes in as secure a method as possible.
171
172 EQUIVALENCE DIRECTORIES
173
174
175 postgrey policy stores data with multiple different file context types
176 under the /var/run/postgrey directory. If you would like to store the
177 data in a different directory you can use the semanage command to cre‐
178 ate an equivalence mapping. If you wanted to store this data under the
179 /srv directory you would execute the following command:
180
181 semanage fcontext -a -e /var/run/postgrey /srv/postgrey
182 restorecon -R -v /srv/postgrey
183
184 STANDARD FILE CONTEXT
185
186 SELinux defines the file context types for the postgrey, if you wanted
187 to store files with these types in a diffent paths, you need to execute
188 the semanage command to specify alternate labeling and then use re‐
189 storecon to put the labels on disk.
190
191 semanage fcontext -a -t postgrey_var_run_t '/srv/mypostgrey_con‐
192 tent(/.*)?'
193 restorecon -R -v /srv/mypostgrey_content
194
195 Note: SELinux often uses regular expressions to specify labels that
196 match multiple files.
197
198 The following file types are defined for postgrey:
199
200
201
202 postgrey_etc_t
203
204 - Set files with the postgrey_etc_t type, if you want to store postgrey
205 files in the /etc directories.
206
207
208
209 postgrey_exec_t
210
211 - Set files with the postgrey_exec_t type, if you want to transition an
212 executable to the postgrey_t domain.
213
214
215
216 postgrey_initrc_exec_t
217
218 - Set files with the postgrey_initrc_exec_t type, if you want to tran‐
219 sition an executable to the postgrey_initrc_t domain.
220
221
222
223 postgrey_spool_t
224
225 - Set files with the postgrey_spool_t type, if you want to store the
226 postgrey files under the /var/spool directory.
227
228
229
230 postgrey_var_lib_t
231
232 - Set files with the postgrey_var_lib_t type, if you want to store the
233 postgrey files under the /var/lib directory.
234
235
236
237 postgrey_var_run_t
238
239 - Set files with the postgrey_var_run_t type, if you want to store the
240 postgrey files under the /run or /var/run directory.
241
242
243 Paths:
244 /var/run/postgrey(/.*)?, /var/run/postgrey.pid
245
246
247 Note: File context can be temporarily modified with the chcon command.
248 If you want to permanently change the file context you need to use the
249 semanage fcontext command. This will modify the SELinux labeling data‐
250 base. You will need to use restorecon to apply the labels.
251
252
254 semanage fcontext can also be used to manipulate default file context
255 mappings.
256
257 semanage permissive can also be used to manipulate whether or not a
258 process type is permissive.
259
260 semanage module can also be used to enable/disable/install/remove pol‐
261 icy modules.
262
263 semanage port can also be used to manipulate the port definitions
264
265 semanage boolean can also be used to manipulate the booleans
266
267
268 system-config-selinux is a GUI tool available to customize SELinux pol‐
269 icy settings.
270
271
273 This manual page was auto-generated using sepolicy manpage .
274
275
277 selinux(8), postgrey(8), semanage(8), restorecon(8), chcon(1), sepol‐
278 icy(8), setsebool(8)
279
280
281
282postgrey 23-02-03 postgrey_selinux(8)