Description of problem: Wake up from sleep while on battery power. SELinux is preventing tlp from 'getattr' accesses on the file /run/tlp/last_pwr. ***** Plugin restorecon (99.5 confidence) suggests ************************ If you want to fix the label. /run/tlp/last_pwr 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/last_pwr ***** Plugin catchall (1.49 confidence) suggests ************************** If you believe that tlp should be allowed getattr access on the last_pwr 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 'tlp' --raw | audit2allow -M my-tlp # semodule -X 300 -i my-tlp.pp Additional Information: Source Context system_u:system_r:tlp_t:s0 Target Context system_u:object_r:var_run_t:s0 Target Objects /run/tlp/last_pwr [ file ] Source tlp Source Path tlp Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.14.2-40.fc29.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.18.16-300.fc29.x86_64 #1 SMP Sat Oct 20 23:24:08 UTC 2018 x86_64 x86_64 Alert Count 1 First Seen 2018-11-01 15:33:13 PDT Last Seen 2018-11-01 15:33:13 PDT Local ID f5d42e74-b87f-41fb-b715-48542bbcb237 Raw Audit Messages type=AVC msg=audit(1541111593.495:250): avc: denied { getattr } for pid=6745 comm="tlp" path="/run/tlp/last_pwr" dev="tmpfs" ino=73217 scontext=system_u:system_r:tlp_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=0 Hash: tlp,tlp_t,var_run_t,file,getattr Version-Release number of selected component: selinux-policy-3.14.2-40.fc29.noarch Additional info: component: selinux-policy reporter: libreport-2.9.6 hashmarkername: setroubleshoot kernel: 4.18.16-300.fc29.x86_64 type: libreport
*** Bug 1639237 has been marked as a duplicate of this bug. ***
*** Bug 1636576 has been marked as a duplicate of this bug. ***
*** Bug 1640261 has been marked as a duplicate of this bug. ***
Hi tlp folks, I need to create proper file transition here, however I don't know which process (or multiple processes) creating /run/tlp/last_pwr. Could you please help here?
Description of problem: I get this message when I log on and it seems to take two tries for my pc to connect to wifi Additional info: reporter: libreport-2.9.6 hashmarkername: setroubleshoot kernel: 4.18.18-300.fc29.x86_64 type: libreport
Hi Lukas, I skimmed the source code and it seems like the two binaries referencing this file is /usr/share/tlp/tlp-functions and /usr/bin/tlp-stat, both shell scripts. Neither of these actually make this file, they only read them. Perhaps the upstream maintainer can answer this (I've CC-ed him to this bug)
Hi @all, upstream (me) says: *** /usr/sbin/tlp *** Reads, Creates and Writes /run/tlp/last_pwr Contexts: 1. Manually in a user shell (root or sudo) (tlp start) 2. Power supply events: udevd --> /lib/udev/rules.d/85-tlp.rules (tlp auto) 3. System startup/shutdown: systemd --> /lib/systemd/system/tlp.service (tlp init start|stop) 4. System suspend/resume: systemd --> /lib/systemd/system/tlp-sleep.service (tlp suspend|resume) *** /usr/bin/tlp-stat *** Reads /run/tlp/last_pwr Context: 1. manually in a user shell (root or sudo) (tlp-stat) Hope it helps.
Description of problem: This happens regularly when waking up laptop from suspend-to-ram. Version-Release number of selected component: selinux-policy-3.14.2-42.fc29.noarch Additional info: reporter: libreport-2.9.6 hashmarkername: setroubleshoot kernel: 4.19.4-300.fc29.x86_64 type: libreport
Description of problem: this happens regularly when waking up laptop from sleep (suspend-to-ram) Version-Release number of selected component: selinux-policy-3.14.2-42.fc29.noarch Additional info: reporter: libreport-2.9.6 hashmarkername: setroubleshoot kernel: 4.19.4-300.fc29.x86_64 type: libreport
Description of problem: Wake up from sleep Version-Release number of selected component: selinux-policy-3.14.2-44.fc29.noarch Additional info: reporter: libreport-2.9.7 hashmarkername: setroubleshoot kernel: 4.19.10-300.fc29.x86_64 type: libreport
Description of problem: sudo systemctl start tlp Version-Release number of selected component: selinux-policy-3.14.2-44.fc29.noarch Additional info: reporter: libreport-2.9.7 hashmarkername: setroubleshoot kernel: 4.20.0-0.rc7.git2.2.fc30.x86_64 type: libreport
Description of problem: I see this error from SELinux when my laptop (Lenovo ThinkPad X250) wakes up from hibernate. I hibernate the laptop by holding down the power button from 1-2 seconds. Version-Release number of selected component: selinux-policy-3.14.2-44.fc29.noarch Additional info: reporter: libreport-2.9.7 hashmarkername: setroubleshoot kernel: 4.19.14-300.fc29.x86_64 type: libreport
Description of problem: Woke up Laptop from suspend Version-Release number of selected component: selinux-policy-3.14.2-51.fc29.noarch Additional info: reporter: libreport-2.10.0 hashmarkername: setroubleshoot kernel: 4.20.16-200.fc29.x86_64 type: libreport
Description of problem: woke up laptop from suspend Version-Release number of selected component: selinux-policy-3.14.2-51.fc29.noarch Additional info: reporter: libreport-2.10.0 hashmarkername: setroubleshoot kernel: 4.20.16-200.fc29.x86_64 type: libreport
Description of problem: Wakeup from sleep Version-Release number of selected component: selinux-policy-3.14.2-51.fc29.noarch Additional info: reporter: libreport-2.10.0 hashmarkername: setroubleshoot kernel: 4.20.16-200.fc29.x86_64 type: libreport
Description of problem: Just updated the kernel and rebooted... I ran 'restorecon -Rv /' and rebooted again - same problem. Version-Release number of selected component: selinux-policy-3.14.2-51.fc29.noarch Additional info: reporter: libreport-2.10.0 hashmarkername: setroubleshoot kernel: 5.0.3-200.fc29.x86_64 type: libreport
Description of problem: installed tlp, started getting this error. Version-Release number of selected component: selinux-policy-3.14.2-57.fc29.noarch Additional info: reporter: libreport-2.10.0 hashmarkername: setroubleshoot kernel: 5.0.9-200.fc29.x86_64 type: libreport
Description of problem: Installed tlp, started getting this error. Version-Release number of selected component: selinux-policy-3.14.2-57.fc29.noarch Additional info: reporter: libreport-2.10.0 hashmarkername: setroubleshoot kernel: 5.0.9-200.fc29.x86_64 type: libreport
*** This bug has been marked as a duplicate of bug 1705246 ***