Bug 1458014

Summary: SELinux is preventing iwconfig from 'write' accesses on the file /run/tlp/lock_tlp.
Product: [Fedora] Fedora Reporter: Yamin <mahmudulhaque>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: dominick.grift, dwalsh, fedora.243908, lvrabec, mgrepl, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b32da7b64d3cd442402588708c0f71a91243a6e334ac016d005a79c1f2d8a420;
Fixed In Version: selinux-policy-3.13.1-257.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-12 13:05:15 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 Yamin 2017-06-01 18:55:52 UTC
Description of problem:
Unplugging the power cable causes this issue.
SELinux is preventing iwconfig from 'write' accesses on the file /run/tlp/lock_tlp.

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

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

Additional Information:
Source Context                system_u:system_r:ifconfig_t:s0-s0:c0.c1023
Target Context                system_u:object_r:tlp_var_run_t:s0
Target Objects                /run/tlp/lock_tlp [ file ]
Source                        iwconfig
Source Path                   iwconfig
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-254.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.3-300.fc26.x86_64 #1 SMP Thu
                              May 25 18:43:57 UTC 2017 x86_64 x86_64
Alert Count                   4
First Seen                    2017-06-02 00:52:11 +06
Last Seen                     2017-06-02 00:52:13 +06
Local ID                      6256955b-46cc-418e-accc-1d54d92e251e

Raw Audit Messages
type=AVC msg=audit(1496343133.935:699): avc:  denied  { write } for  pid=7681 comm="ethtool" path="/run/tlp/lock_tlp" dev="tmpfs" ino=28241 scontext=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tlp_var_run_t:s0 tclass=file permissive=0


Hash: iwconfig,ifconfig_t,tlp_var_run_t,file,write

Version-Release number of selected component:
selinux-policy-3.13.1-254.fc26.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.11.3-300.fc26.x86_64
type:           libreport

Potential duplicate: bug 1412884

Comment 1 Fedora Update System 2017-06-08 11:09:14 UTC
selinux-policy-3.13.1-257.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6a43388229

Comment 2 Fedora Update System 2017-06-10 01:09:21 UTC
selinux-policy-3.13.1-257.fc26 has been pushed to the Fedora 26 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-2017-6a43388229

Comment 3 Yamin 2017-06-10 16:06:30 UTC
*** Bug 1412884 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2017-06-12 13:05:15 UTC
selinux-policy-3.13.1-257.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.