Bug 1405280 - SELinux is preventing tlp from 'open' accesses on the file /run/tlp/last_pwr.
Summary: SELinux is preventing tlp from 'open' accesses on the file /run/tlp/last_pwr.
Keywords:
Status: CLOSED DUPLICATE of bug 1405768
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:01060382519c425a255ae8e0ea9...
: 1405281 1405283 1432513 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-16 03:54 UTC by Nate Graham
Modified: 2017-06-06 13:42 UTC (History)
18 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-06-06 13:42:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nate Graham 2016-12-16 03:54:57 UTC
Description of problem:
Install tlp
SELinux is preventing tlp from 'open' 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.
Do
# /sbin/restorecon -v /run/tlp/last_pwr

*****  Plugin catchall (1.49 confidence) suggests   **************************

If you believe that tlp should be allowed open 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.13.1-225.3.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.13-300.fc25.x86_64 #1 SMP Fri
                              Dec 9 14:52:00 UTC 2016 x86_64 x86_64
Alert Count                   2
First Seen                    2016-12-15 20:53:13 MST
Last Seen                     2016-12-15 20:53:39 MST
Local ID                      8e4de967-d5ad-4e6b-bc7b-e46d79ee2014

Raw Audit Messages
type=AVC msg=audit(1481860419.39:251): avc:  denied  { open } for  pid=2776 comm="cat" path="/run/tlp/last_pwr" dev="tmpfs" ino=13635 scontext=system_u:system_r:tlp_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=1


Hash: tlp,tlp_t,var_run_t,file,open

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

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

Comment 1 Daniel Walsh 2016-12-16 18:15:27 UTC
*** Bug 1405283 has been marked as a duplicate of this bug. ***

Comment 2 Daniel Walsh 2016-12-16 18:15:43 UTC
*** Bug 1405281 has been marked as a duplicate of this bug. ***

Comment 3 Andrew Rembrandt 2016-12-19 15:45:18 UTC
Description of problem:
Have installed and enabled tlp - resumed from standyby

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

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.7.4-994.surfacepro3.fc25.x86_64
type:           libreport

Comment 4 arturpolak1 2017-03-15 14:37:57 UTC
*** Bug 1432513 has been marked as a duplicate of this bug. ***

Comment 5 Youssef 2017-05-19 16:11:42 UTC
Description of problem:
I switched from battery to AC after installing TLP

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

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.10.15-200.fc25.x86_64
type:           libreport

Comment 6 Luca Botti 2017-06-03 07:37:46 UTC
Description of problem:
Installed TLP. restarted PC after some updates.

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

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.11.3-200.fc25.x86_64
type:           libreport

Comment 7 Lukas Vrabec 2017-06-06 13:42:40 UTC

*** This bug has been marked as a duplicate of bug 1405768 ***


Note You need to log in before you can comment on or make changes to this bug.