Bug 1482353

Summary: SELinux is preventing dhclient from 'map' accesses on the file /var/lib/NetworkManager/dhclient-f7751877-018c-4740-9ab0-7fdd76d9e1f2-wlp1s0.lease.
Product: [Fedora] Fedora Reporter: Delete My Account <c.crispino8611>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: dominick.grift, dwalsh, lsm5, lvrabec, mgrepl, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d8ece69370e36d241f57baa27d9c2c79b09cee36b2189f2ea48adf8ff2971ac4;
Fixed In Version: selinux-policy-3.13.1-271.fc27 selinux-policy-3.14.1-32.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-09 20:42:16 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 Delete My Account 2017-08-17 05:36:01 UTC
Description of problem:
If I disconnect from internet I can't reconnect until I reboot the system
SELinux is preventing dhclient from 'map' accesses on the file /var/lib/NetworkManager/dhclient-f7751877-018c-4740-9ab0-7fdd76d9e1f2-wlp1s0.lease.

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

If si crede che dhclient dovrebbe avere possibilità di accesso map sui dhclient-f7751877-018c-4740-9ab0-7fdd76d9e1f2-wlp1s0.lease file in modo predefinito.
Then si dovrebbe riportare il problema come bug.
E' possibile generare un modulo di politica locale per consentire questo accesso.
Do
allow this access for now by executing:
# ausearch -c 'dhclient' --raw | audit2allow -M my-dhclient
# semodule -X 300 -i my-dhclient.pp

Additional Information:
Source Context                system_u:system_r:dhcpc_t:s0
Target Context                system_u:object_r:NetworkManager_var_lib_t:s0
Target Objects                /var/lib/NetworkManager/dhclient-f7751877-018c-474
                              0-9ab0-7fdd76d9e1f2-wlp1s0.lease [ file ]
Source                        dhclient
Source Path                   dhclient
Port                          <Sconosciuto>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-270.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.13.0-0.rc4.git4.1.fc27.x86_64 #1
                              SMP Fri Aug 11 15:03:46 UTC 2017 x86_64 x86_64
Alert Count                   6
First Seen                    2017-08-15 08:38:15 CEST
Last Seen                     2017-08-17 07:24:06 CEST
Local ID                      e8b0a0f2-d8af-42b0-b15c-2e9ee9abd449

Raw Audit Messages
type=AVC msg=audit(1502947446.332:1408): avc:  denied  { map } for  pid=1604 comm="dhclient" path="/var/lib/NetworkManager/dhclient-f7751877-018c-4740-9ab0-7fdd76d9e1f2-wlp1s0.lease" dev="sda4" ino=1183127 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:NetworkManager_var_lib_t:s0 tclass=file permissive=0


Hash: dhclient,dhcpc_t,NetworkManager_var_lib_t,file,map

Version-Release number of selected component:
selinux-policy-3.13.1-270.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.13.0-0.rc4.git4.1.fc27.x86_64
type:           libreport

Potential duplicate: bug 1480910

Comment 1 Delete My Account 2017-08-17 12:54:53 UTC
Description of problem:
Can't reconnect to internet without reboot

Version-Release number of selected component:
selinux-policy-3.13.1-270.fc27.noarch

Additional info:
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.13.0-0.rc4.git4.1.fc27.x86_64
type:           libreport

Comment 2 Fedora End Of Life 2018-02-20 15:34:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 3 Fedora Update System 2018-06-06 13:36:37 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:09 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:16 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.