Bug 1760834 - SELinux is preventing rhsmcertd-worke from 'open' accesses on the file /var/log/hawkey.log.
Summary: SELinux is preventing rhsmcertd-worke from 'open' accesses on the file /var/l...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 30
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b6471f9644c8dc7a88624819561...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-11 12:44 UTC by Vasco Rodrigues
Modified: 2019-11-17 01:12 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.14.3-52.fc30
Clone Of:
Environment:
Last Closed: 2019-11-17 01:12:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vasco Rodrigues 2019-10-11 12:44:35 UTC
Description of problem:
SELinux is preventing rhsmcertd-worke from 'open' accesses on the file /var/log/hawkey.log.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that rhsmcertd-worke should be allowed open access on the hawkey.log file 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 'rhsmcertd-worke' --raw | audit2allow -M my-rhsmcertdworke
# semodule -X 300 -i my-rhsmcertdworke.pp

Additional Information:
Source Context                system_u:system_r:rhsmcertd_t:s0
Target Context                unconfined_u:object_r:var_log_t:s0
Target Objects                /var/log/hawkey.log [ file ]
Source                        rhsmcertd-worke
Source Path                   rhsmcertd-worke
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           dnf-data-4.2.8-2.fc30.noarch
Policy RPM                    selinux-policy-3.14.3-46.fc30.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.2.9-200.fc30.x86_64 #1 SMP Fri
                              Aug 16 21:37:45 UTC 2019 x86_64 x86_64
Alert Count                   671
First Seen                    2019-06-18 17:53:36 WEST
Last Seen                     2019-10-11 13:07:53 WEST
Local ID                      9bbe558d-cb00-49c0-8432-22b8306d4e41

Raw Audit Messages
type=AVC msg=audit(1570795673.985:139951): avc:  denied  { open } for  pid=21366 comm="rhsmcertd-worke" path="/var/log/hawkey.log" dev="dm-4" ino=266274 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file permissive=0


Hash: rhsmcertd-worke,rhsmcertd_t,var_log_t,file,open

Version-Release number of selected component:
selinux-policy-3.14.3-46.fc30.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.1
hashmarkername: setroubleshoot
kernel:         5.2.9-200.fc30.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2019-10-14 10:55:13 UTC
commit 002416bb7d454181fb0c93b8e39cd80a5c6fec95 (HEAD -> f30, origin/f30)
Author: Lukas Vrabec <lvrabec>
Date:   Mon Aug 26 15:50:25 2019 +0200

    Label /var/log/hawkey.log as rpm_log_t and update rpm named filetrans
    interfaces.

Comment 2 Fedora Update System 2019-10-23 07:00:16 UTC
FEDORA-2019-d68c9e27f8 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-d68c9e27f8

Comment 3 Fedora Update System 2019-10-25 19:33:54 UTC
selinux-policy-3.14.3-50.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-d68c9e27f8

Comment 4 Fedora Update System 2019-10-26 17:02:40 UTC
FEDORA-2019-f83217e2bf has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-f83217e2bf

Comment 5 Fedora Update System 2019-10-27 03:54:39 UTC
selinux-policy-3.14.3-51.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-f83217e2bf

Comment 6 Fedora Update System 2019-11-03 14:10:40 UTC
FEDORA-2019-70d80ad4bc has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-70d80ad4bc

Comment 7 Fedora Update System 2019-11-04 02:10:04 UTC
selinux-policy-3.14.3-52.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-70d80ad4bc

Comment 8 Fedora Update System 2019-11-17 01:12:58 UTC
selinux-policy-3.14.3-52.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.