Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionBrian J. Murrell
2022-03-19 22:33:35 UTC
When using the default /run/cyrus/socket/lmtp path for the lmtp socket defined in /etc/cyrus.conf the following AVC is logged.
SELinux is preventing /usr/libexec/postfix/lmtp from write access on the sock_file lmtp.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that lmtp should be allowed write access on the lmtp sock_file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'lmtp' --raw | audit2allow -M my-lmtp
# semodule -X 300 -i my-lmtp.pp
Additional Information:
Source Context system_u:system_r:postfix_smtp_t:s0
Target Context system_u:object_r:cyrus_var_run_t:s0
Target Objects lmtp [ sock_file ]
Source lmtp
Source Path /usr/libexec/postfix/lmtp
Port <Unknown>
Host server.interlinx.bc.ca
Source RPM Packages postfix-3.5.8-2.el8.x86_64
Target RPM Packages
SELinux Policy RPM selinux-policy-targeted-3.14.3-80.el8_5.2.noarch
Local Policy RPM selinux-policy-targeted-3.14.3-80.el8_5.2.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name server.interlinx.bc.ca
Platform Linux server.interlinx.bc.ca
4.18.0-348.12.2.el8_5.x86_64 #1 SMP Wed Jan 19
14:35:04 EST 2022 x86_64 x86_64
Alert Count 12
First Seen 2022-02-28 07:25:03 EST
Last Seen 2022-02-28 07:29:30 EST
Local ID 51515fa6-d6c9-4bce-9e3f-0cfd714d91e9
Raw Audit Messages
type=AVC msg=audit(1646051370.955:83893): avc: denied { write } for pid=3086610 comm="lmtp" name="lmtp" dev="tmpfs" ino=204371594 scontext=system_u:system_r:postfix_smtp_t:s0 tcontext=system_u:object_r:cyrus_var_run_t:s0 tclass=sock_file permissive=0
type=SYSCALL msg=audit(1646051370.955:83893): arch=x86_64 syscall=connect success=no exit=EACCES a0=11 a1=7ffe7e27ebb0 a2=6e a3=11 items=0 ppid=4904 pid=3086610 auid=4294967295 uid=89 gid=89 euid=89 suid=89 fsuid=89 egid=89 sgid=89 fsgid=89 tty=(none) ses=4294967295 comm=lmtp exe=/usr/libexec/postfix/lmtp subj=system_u:system_r:postfix_smtp_t:s0 key=(null)
Hash: lmtp,postfix_smtp_t,cyrus_var_run_t,sock_file,write
Commit to backport:
commit 08def7c154b5be4ce7b11643d71d59fe98ea2bfc
Author: Zdenek Pytela <zpytela>
Date: Wed Feb 26 20:52:09 2020 +0100
Allow postfix stream connect to cyrus through runtime socket
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (selinux-policy bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2022:7691
When using the default /run/cyrus/socket/lmtp path for the lmtp socket defined in /etc/cyrus.conf the following AVC is logged. SELinux is preventing /usr/libexec/postfix/lmtp from write access on the sock_file lmtp. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that lmtp should be allowed write access on the lmtp sock_file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'lmtp' --raw | audit2allow -M my-lmtp # semodule -X 300 -i my-lmtp.pp Additional Information: Source Context system_u:system_r:postfix_smtp_t:s0 Target Context system_u:object_r:cyrus_var_run_t:s0 Target Objects lmtp [ sock_file ] Source lmtp Source Path /usr/libexec/postfix/lmtp Port <Unknown> Host server.interlinx.bc.ca Source RPM Packages postfix-3.5.8-2.el8.x86_64 Target RPM Packages SELinux Policy RPM selinux-policy-targeted-3.14.3-80.el8_5.2.noarch Local Policy RPM selinux-policy-targeted-3.14.3-80.el8_5.2.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name server.interlinx.bc.ca Platform Linux server.interlinx.bc.ca 4.18.0-348.12.2.el8_5.x86_64 #1 SMP Wed Jan 19 14:35:04 EST 2022 x86_64 x86_64 Alert Count 12 First Seen 2022-02-28 07:25:03 EST Last Seen 2022-02-28 07:29:30 EST Local ID 51515fa6-d6c9-4bce-9e3f-0cfd714d91e9 Raw Audit Messages type=AVC msg=audit(1646051370.955:83893): avc: denied { write } for pid=3086610 comm="lmtp" name="lmtp" dev="tmpfs" ino=204371594 scontext=system_u:system_r:postfix_smtp_t:s0 tcontext=system_u:object_r:cyrus_var_run_t:s0 tclass=sock_file permissive=0 type=SYSCALL msg=audit(1646051370.955:83893): arch=x86_64 syscall=connect success=no exit=EACCES a0=11 a1=7ffe7e27ebb0 a2=6e a3=11 items=0 ppid=4904 pid=3086610 auid=4294967295 uid=89 gid=89 euid=89 suid=89 fsuid=89 egid=89 sgid=89 fsgid=89 tty=(none) ses=4294967295 comm=lmtp exe=/usr/libexec/postfix/lmtp subj=system_u:system_r:postfix_smtp_t:s0 key=(null) Hash: lmtp,postfix_smtp_t,cyrus_var_run_t,sock_file,write