Bug 1579626 - SELinux is preventing procmail from using the 'dac_override' capabilities.
Summary: SELinux is preventing procmail from using the 'dac_override' capabilities.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 28
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3c19c5127909d749ff221d6db8c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-18 04:41 UTC by Claude Frantz
Modified: 2018-06-09 20:42 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-3.14.2-22.fc29 selinux-policy-3.14.1-32.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1582434 (view as bug list)
Environment:
Last Closed: 2018-06-09 20:42:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Claude Frantz 2018-05-18 04:41:15 UTC
Description of problem:
Probably called by rpm
SELinux is preventing procmail from using the 'dac_override' capabilities.

*****  Plugin dac_override (91.4 confidence) suggests   **********************

If you want to help identify if domain needs this access or you have a file with the wrong permissions on your system
Then turn on full auditing to get path information about the offending file and generate the error again.
Do

Turn on full auditing
# auditctl -w /etc/shadow -p w
Try to recreate AVC. Then execute
# ausearch -m avc -ts recent
If you see PATH record check ownership/permissions on file, and fix it,
otherwise report as a bugzilla.

*****  Plugin catchall (9.59 confidence) suggests   **************************

If you believe that procmail should have the dac_override capability 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 'procmail' --raw | audit2allow -M my-procmail
# semodule -X 300 -i my-procmail.pp

Additional Information:
Source Context                system_u:system_r:procmail_t:s0
Target Context                system_u:system_r:procmail_t:s0
Target Objects                Unknown [ capability ]
Source                        procmail
Source Path                   procmail
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.16.7-100.fc26.i686+PAE #1 SMP
                              Wed May 2 22:19:22 UTC 2018 i686 i686
Alert Count                   4
First Seen                    2018-05-16 08:38:18 CEST
Last Seen                     2018-05-18 06:30:09 CEST
Local ID                      b1e8469a-33ad-4bb7-8669-07a2db05f0c6

Raw Audit Messages
type=AVC msg=audit(1526617809.818:285): avc:  denied  { dac_override } for  pid=6700 comm="procmail" capability=1  scontext=system_u:system_r:procmail_t:s0 tcontext=system_u:system_r:procmail_t:s0 tclass=capability permissive=0


Hash: procmail,procmail_t,procmail_t,capability,dac_override


Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.16.7-100.fc26.i686+PAE
type:           libreport

Comment 2 Claude Frantz 2018-05-27 07:48:19 UTC
Description of problem:
Here is the output of "ausearch -m avc -ts recent":

time->Sun May 27 09:34:12 2018
type=AVC msg=audit(1527406452.168:285): avc:  denied  { dac_override } for  pid=9354 comm="procmail" capability=1  scontext=system_u:system_r:procmail_t:s0 tcontext=system_u:system_r:procmail_t:s0 tclass=capability permissive=0
----
time->Sun May 27 09:34:17 2018
type=AVC msg=audit(1527406457.915:287): avc:  denied  { read } for  pid=11411 comm="rpm" name="Packages" dev="sda5" ino=4849906 scontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=file permissive=0
----
time->Sun May 27 09:34:16 2018
type=AVC msg=audit(1527406456.952:286): avc:  denied  { read } for  pid=10323 comm="setroubleshootd" name="Packages" dev="sda5" ino=4849906 scontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=file permissive=0
----
time->Sun May 27 09:34:17 2018
type=AVC msg=audit(1527406457.916:288): avc:  denied  { read } for  pid=11411 comm="rpm" name="Packages" dev="sda5" ino=4849906 scontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=file permissive=0
----
time->Sun May 27 09:34:17 2018
type=AVC msg=audit(1527406457.944:289): avc:  denied  { read } for  pid=11414 comm="rpm" name="Packages" dev="sda5" ino=4849906 scontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=file permissive=0
----
time->Sun May 27 09:34:17 2018
type=AVC msg=audit(1527406457.944:290): avc:  denied  { read } for  pid=11414 comm="rpm" name="Packages" dev="sda5" ino=4849906 scontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=file permissive=0


Additional info:
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.16.7-100.fc26.i686+PAE
type:           libreport

Comment 3 Fedora Update System 2018-06-06 13:36:57 UTC
selinux-policy-3.14.1-32.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-743a9247de

Comment 4 Fedora Update System 2018-06-07 13:17:26 UTC
selinux-policy-3.14.1-32.fc28 has been pushed to the Fedora 28 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-2018-743a9247de

Comment 5 Fedora Update System 2018-06-09 20:42:36 UTC
selinux-policy-3.14.1-32.fc28 has been pushed to the Fedora 28 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.