Bug 1376548 - AVC - opendmarc attempts to shell_exec_t on dkim_milter_t
Summary: AVC - opendmarc attempts to shell_exec_t on dkim_milter_t
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-15 16:41 UTC by Juraci Paixão Kröhling
Modified: 2019-04-29 09:17 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 17:22:37 UTC
Type: Bug


Attachments (Terms of Use)

Description Juraci Paixão Kröhling 2016-09-15 16:41:29 UTC
Description of problem:
opendmarc seems to require a shell_exec_t when in dkim_milter_t context. Otherwise, it generates an AVC on signing messages, as follows:

type=AVC msg=audit(1473957104.698:248): avc:  denied  { execute } for  pid=1938 comm="opendmarc" name="bash" dev="vda1" ino=5442 scontext=system_u:system_r:dkim_milter_t:s0 tcontext=system_u:object_r:shell_exec_t:s0 tclass=file permissive=0

On the journal, I see this:
Sep 15 16:31:44 riacho opendmarc[1198]: 8C6248108F: pclose() exited with status 127

Version-Release number of selected component (if applicable):
1.3.1, release 15.fc24

How reproducible:
Always (on sending messages from a server configured with opendmarc)

Comment 1 Steve Jenkins 2016-09-15 16:55:01 UTC
I believe this bug needs to be reviewed (and addressed if necessary) in selinux-policy, so I'm re-assigning the bug to that component.

Comment 2 Juraci Paixão Kröhling 2016-09-20 13:18:31 UTC
Is there anything new about this? As far as I understand, DMARC has to either be disabled for the domain or a custom selinux rule has to be added, trusting that this AVC is a false-positive. Otherwise it would generate a failure on the message envelope. In some configurations, this means a SPF failure, which is almost enough to make a message to be marked as spam on the recipient side.

Comment 3 Fedora Admin XMLRPC Client 2016-09-27 15:10:56 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Juraci Paixão Kröhling 2016-10-24 15:41:48 UTC
Any news on this?

Comment 5 Juraci Paixão Kröhling 2016-10-25 14:30:04 UTC
I tried to add a custom selinux rule to workaround this issue, but it seems that there are a lot of selinux problems with this package. Therefore, the real workaround seems to either disable opendmarc or disable selinux. Between those two, I'm disabling opendmarc.

Comment 6 Steve Jenkins 2016-12-21 03:58:10 UTC
I'd love to ship an SELinux policy with this package, but am a complete SELinux novice. If anyone would like to assist in an SELinux policy for OpenDMARC, please let me know.

lvrabec: Or perhaps you could give me a nudge in the right direction, or an existing policy for a milter that I could start from?

Comment 7 Fedora End Of Life 2017-07-25 23:03:15 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2017-08-08 17:22:37 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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