Bug 1655349 - SELinux is preventing certwatch from using the 'dac_override' capabilities.
Summary: SELinux is preventing certwatch from using the 'dac_override' capabilities.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0f1a91f10df959acd5b2a782595...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-03 00:34 UTC by Doug Hutcheson
Modified: 2019-01-17 02:16 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.14.2-46.fc29
Clone Of:
Environment:
Last Closed: 2019-01-17 02:16:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Doug Hutcheson 2018-12-03 00:34:06 UTC
Description of problem:
This one of a cascade of related reports presented each morning after I open my laptop.
SELinux is preventing certwatch 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 certwatch 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 'certwatch' --raw | audit2allow -M my-certwatch
# semodule -X 300 -i my-certwatch.pp

Additional Information:
Source Context                system_u:system_r:certwatch_t:s0-s0:c0.c1023
Target Context                system_u:system_r:certwatch_t:s0-s0:c0.c1023
Target Objects                Unknown [ capability ]
Source                        certwatch
Source Path                   certwatch
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.19.4-300.fc29.x86_64 #1 SMP Fri
                              Nov 23 13:03:11 UTC 2018 x86_64 x86_64
Alert Count                   320
First Seen                    2018-11-26 08:56:37 AEST
Last Seen                     2018-12-03 10:08:38 AEST
Local ID                      2b901af2-5781-414a-b0f7-d3631a745d77

Raw Audit Messages
type=AVC msg=audit(1543795718.634:10531): avc:  denied  { dac_override } for  pid=22300 comm="certwatch" capability=1  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability permissive=0


Hash: certwatch,certwatch_t,certwatch_t,capability,dac_override


Additional info:
component:      selinux-policy
reporter:       libreport-2.9.6
hashmarkername: setroubleshoot
kernel:         4.19.4-300.fc29.x86_64
type:           libreport

Potential duplicate: bug 1485457

Comment 1 Lukas Vrabec 2018-12-12 15:25:57 UTC
commit 23a12ed2b9dfa34be70cff7e5413e799af8a47c4 (HEAD -> rawhide)
Author: Lukas Vrabec <lvrabec>
Date:   Wed Dec 12 16:25:33 2018 +0100

    Add dac_override capability for certwatch_t domain BZ(1655349)

Comment 2 Fedora Update System 2019-01-13 15:44:41 UTC
selinux-policy-3.14.2-46.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-6a20cfef61

Comment 3 Fedora Update System 2019-01-14 03:02:58 UTC
selinux-policy-3.14.2-46.fc29 has been pushed to the Fedora 29 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-6a20cfef61

Comment 4 Fedora Update System 2019-01-17 02:16:26 UTC
selinux-policy-3.14.2-46.fc29 has been pushed to the Fedora 29 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.