Bug 1709572 - SELinux is preventing dovecot-lda from setuid/setgid when delivering mail
Summary: SELinux is preventing dovecot-lda from setuid/setgid when delivering mail
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 30
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-13 20:42 UTC by Doug Ledford
Modified: 2019-05-21 01:09 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.14.3-37.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-21 01:09:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Doug Ledford 2019-05-13 20:42:38 UTC
Description of problem:

dovecot-lda, when configured as the local delivery agent for sendmail, needs both setuid and setgid capability.

This resolves it:

module dovecot-lda 1.0;

require {
	type dovecot_deliver_t;
	class capability { setgid setuid };
}

#============= dovecot_deliver_t ==============

#!!!! This avc is allowed in the current policy
allow dovecot_deliver_t self:capability setgid;
allow dovecot_deliver_t self:capability setuid;


If you need instructions on setting up dovecot-lda as the delivery agent for sendmail so you can see the problem for yourself, please ask.

Comment 1 Zdenek Pytela 2019-05-14 06:26:02 UTC
Thank you for reporting the issue. I created a PR to address the issue:

https://github.com/fedora-selinux/selinux-policy-contrib/pull/109

Are these capabilities required only in F30?

Comment 2 Doug Ledford 2019-05-15 14:42:10 UTC
No, it applies to all versions of Fedora.  I've personally ran into it on F29 and F30.  It also applies to EL7 and EL8.

Comment 3 Fedora Update System 2019-05-18 11:03:27 UTC
selinux-policy-3.14.3-37.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-40c077f70d

Comment 4 Fedora Update System 2019-05-19 00:50:59 UTC
selinux-policy-3.14.3-37.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-40c077f70d

Comment 5 Fedora Update System 2019-05-21 01:09:32 UTC
selinux-policy-3.14.3-37.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.