Bug 1401233

Summary: SELinux is preventing iw from 'ioctl' accesses on the unix_dgram_socket unix_dgram_socket.
Product: [Fedora] Fedora Reporter: Alex <alex.vizor>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: bugzilla, charles-henri, dominick.grift, dwalsh, dxzlabs, jylo06g, lvrabec, mgrepl, mrunge, nd3p3nd3nt, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a56b0b495bcd6308dc918b789356fbd647a18a4a31978b10088677ac5808902e;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-225.3.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-12 23:58:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alex 2016-12-03 19:08:37 UTC
Description of problem:
SELinux is preventing iw from 'ioctl' accesses on the unix_dgram_socket unix_dgram_socket.

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

If you believe that iw should be allowed ioctl access on the unix_dgram_socket unix_dgram_socket 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 'iw' --raw | audit2allow -M my-iw
# semodule -X 300 -i my-iw.pp

Additional Information:
Source Context                system_u:system_r:tlp_t:s0
Target Context                system_u:system_r:tlp_t:s0
Target Objects                unix_dgram_socket [ unix_dgram_socket ]
Source                        iw
Source Path                   iw
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-225.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.12-300.fc25.x86_64 #1 SMP Fri
                              Dec 2 17:52:11 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-12-03 11:07:36 PST
Last Seen                     2016-12-03 11:07:36 PST
Local ID                      bc31663d-9ce0-4c64-bbd1-e3018159f32f

Raw Audit Messages
type=AVC msg=audit(1480792056.135:219): avc:  denied  { ioctl } for  pid=1555 comm="iw" path="socket:[27862]" dev="sockfs" ino=27862 ioctlcmd=0x8933 scontext=system_u:system_r:tlp_t:s0 tcontext=system_u:system_r:tlp_t:s0 tclass=unix_dgram_socket permissive=1


Hash: iw,tlp_t,tlp_t,unix_dgram_socket,ioctl

Version-Release number of selected component:
selinux-policy-3.13.1-225.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.12-300.fc25.x86_64
type:           libreport

Comment 1 Matthias Runge 2016-12-08 19:57:09 UTC
Description of problem:
wake up from suspend to ram

Version-Release number of selected component:
selinux-policy-3.13.1-225.1.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.12-300.fc25.x86_64
type:           libreport

Comment 2 Fedora Update System 2016-12-09 13:47:12 UTC
selinux-policy-3.13.1-225.3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f24b3ddc6a

Comment 3 Fedora Update System 2016-12-10 03:58:12 UTC
selinux-policy-3.13.1-225.3.fc25 has been pushed to the Fedora 25 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-2016-f24b3ddc6a

Comment 4 Jia Yuan Lo 2016-12-10 15:41:47 UTC
Description of problem:
Happened after 1st time install BOINC client and 1st time starting BOINC client service

Version-Release number of selected component:
selinux-policy-3.13.1-225.1.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.12-300.fc25.x86_64
type:           libreport

Comment 5 Doaxan 2016-12-11 04:24:49 UTC
Description of problem:
After latest update, i get this after every reboot.

Version-Release number of selected component:
selinux-policy-3.13.1-225.1.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.12-300.fc25.x86_64
type:           libreport

Comment 6 nd3p3nd3nt 2016-12-11 23:51:34 UTC
*** Bug 1403616 has been marked as a duplicate of this bug. ***

Comment 7 Charles-Henri d'Adhémar 2016-12-12 19:44:13 UTC
Description of problem:
Closing the laptop lid and opening the lid causes the issue.

Version-Release number of selected component:
selinux-policy-3.13.1-225.1.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.11-300.fc25.x86_64
type:           libreport

Comment 8 Fedora Update System 2016-12-12 23:58:37 UTC
selinux-policy-3.13.1-225.3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.