Description of problem: This just appeared out of the blue. SELinux is preventing iw from 'write' accesses on the file /run/tlp/lock_tlp. ***** Plugin restorecon (99.5 confidence) suggests ************************ If you want to fix the label. /run/tlp/lock_tlp default label should be tlp_var_run_t. Then you can run restorecon. The access attempt may have been stopped due to insufficient permissions to access a parent directory in which case try to change the following command accordingly. Do # /sbin/restorecon -v /run/tlp/lock_tlp ***** Plugin catchall (1.49 confidence) suggests ************************** If you believe that iw 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 'iw' --raw | audit2allow -M my-iw # semodule -X 300 -i my-iw.pp Additional Information: Source Context system_u:system_r:ifconfig_t:s0-s0:c0.c1023 Target Context system_u:object_r:var_run_t:s0 Target Objects /run/tlp/lock_tlp [ file ] Source iw Source Path iw Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.14.1-44.fc28.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.18.12-200.fc28.x86_64 #1 SMP Thu Oct 4 15:46:35 UTC 2018 x86_64 x86_64 Alert Count 2 First Seen 2018-10-14 00:34:05 CEST Last Seen 2018-10-15 09:32:30 CEST Local ID 592f65e4-6c76-4bfe-92b0-8eb732fd1e48 Raw Audit Messages type=AVC msg=audit(1539588750.437:302): avc: denied { write } for pid=9958 comm="iw" path="/run/tlp/lock_tlp" dev="tmpfs" ino=169698 scontext=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=0 Hash: iw,ifconfig_t,var_run_t,file,write Version-Release number of selected component: selinux-policy-3.14.1-44.fc28.noarch Additional info: component: selinux-policy reporter: libreport-2.9.6 hashmarkername: setroubleshoot kernel: 4.18.12-300.fc29.x86_64 type: libreport Potential duplicate: bug 1394088
Description of problem: Unplug the laptop from the power source, SELinux throws Alert. Version-Release number of selected component: selinux-policy-3.14.2-40.fc29.noarch Additional info: reporter: libreport-2.9.6 hashmarkername: setroubleshoot kernel: 4.18.16-300.fc29.x86_64 type: libreport
*** This bug has been marked as a duplicate of bug 1645313 ***