Bug 2043599
Summary: | postfix cannot use certs stored in dovecot certs directory | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Renaud Métrich <rmetrich> |
Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.5 | CC: | lvrabec, mmalik, pkoncity, ssekidde |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.6 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.14.3-92.el8 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-05-10 15:15:49 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Renaud Métrich
2022-01-21 15:32:02 UTC
We currently have these types or certificates: # seinfo -xa cert_type Type Attributes: 1 attribute cert_type; cert_t dovecot_cert_t fwupd_cert_t home_cert_t (not in rhel8) ipa_cert_t (in ipa-selinux) pki_tomcat_cert_t slapd_cert_t Hi Renaud, please can you reproduce the scenario again and attach here full AVC's messages in permissive mode? Steps to enable full auditing and permissive SELinux mode: 1) Open the /etc/audit/rules.d/audit.rules file in an editor. 2) Remove the following line if it exists: -a task,never 3) Add the following line to the end of the file: -w /etc/shadow -p w 4) Restart the audit daemon: # service auditd restart 5) Open the /etc/selinux/config file in an editor. change line SELINUX=enforcing to SELINUX=permissive 6) Re-run your scenario 7) Collect AVC denials: # ausearch -i -m avc,user_avc,selinux_err,user_selinux_err -ts today Thank you, Patrik I've submitted a Fedora PR to address the issue: https://github.com/fedora-selinux/selinux-policy/pull/1068 Allowing access to dovecot_cert_t only, given the output in #c1 I don't think there is a reason to read other certificates. To backport: commit 03e93e0ddd2b3c41138bd3cbc20ea7bd61f58502 (HEAD -> rawhide, upstream/rawhide) Author: Zdenek Pytela <zpytela> Date: Fri Feb 11 17:48:59 2022 +0100 Allow postfix_domain read dovecot certificates 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:1995 |