Bug 1770700

Summary: SELinux is preventing 11-dhclient from 'append' accesses on the file /var/lib/dhclient/chrony.servers.wlp61s0.
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: cunio, dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3b01b2268dbd105bab6cd468318e7c84ed538a028dfafe0203d9dda013fa754d;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-11 11:32:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kamil Páral 2019-11-11 08:15:28 UTC
Description of problem:
I updated my system and rebooted. Happened on login, I think.
SELinux is preventing 11-dhclient from 'append' accesses on the file /var/lib/dhclient/chrony.servers.wlp61s0.

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

If you believe that 11-dhclient should be allowed append access on the chrony.servers.wlp61s0 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 '11-dhclient' --raw | audit2allow -M my-11dhclient
# semodule -X 300 -i my-11dhclient.pp

Additional Information:
Source Context                system_u:system_r:NetworkManager_t:s0
Target Context                system_u:object_r:dhcpc_state_t:s0
Target Objects                /var/lib/dhclient/chrony.servers.wlp61s0 [ file ]
Source                        11-dhclient
Source Path                   11-dhclient
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.4-40.fc31.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.3.9-300.fc31.x86_64 #1 SMP Wed
                              Nov 6 16:13:19 UTC 2019 x86_64 x86_64
Alert Count                   2
First Seen                    2019-11-11 09:12:22 CET
Last Seen                     2019-11-11 09:12:28 CET
Local ID                      7586c1a5-bc1b-4c3b-acd9-4c0557a20d41

Raw Audit Messages
type=AVC msg=audit(1573459948.468:210): avc:  denied  { append } for  pid=2073 comm="11-dhclient" path="/var/lib/dhclient/chrony.servers.wlp61s0" dev="dm-1" ino=1048694 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:dhcpc_state_t:s0 tclass=file permissive=1


Hash: 11-dhclient,NetworkManager_t,dhcpc_state_t,file,append

Version-Release number of selected component:
selinux-policy-3.14.4-40.fc31.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.1
hashmarkername: setroubleshoot
kernel:         5.3.9-300.fc31.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2019-11-11 11:32:45 UTC

*** This bug has been marked as a duplicate of bug 1770698 ***

Comment 2 Jacek Pawlyta 2019-11-21 12:17:11 UTC
*** Bug 1775109 has been marked as a duplicate of this bug. ***