Bug 1585486 - SELinux is preventing cat from 'getattr' accesses on the Datei /run/tlp/last_pwr.
Summary: SELinux is preventing cat from 'getattr' accesses on the Datei /run/tlp/last_...
Keywords:
Status: CLOSED DUPLICATE of bug 1586329
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4e02ed7bf1d97580c854ba23351...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-03 13:16 UTC by Heiko Adams
Modified: 2018-06-10 20:57 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-10 20:57:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Heiko Adams 2018-06-03 13:16:36 UTC
Description of problem:
SELinux is preventing cat from 'getattr' accesses on the Datei /run/tlp/last_pwr.

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

If you believe that cat should be allowed getattr access on the last_pwr file by default.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
allow this access for now by executing:
# ausearch -c 'cat' --raw | audit2allow -M my-cat
# semodule -X 300 -i my-cat.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                        cat
Source Path                   cat
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-30.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.16.13-300.fc28.x86_64 #1 SMP Wed
                              May 30 14:31:00 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-06-03 10:30:57 CEST
Last Seen                     2018-06-03 10:30:57 CEST
Local ID                      8a34a2f3-906c-4386-a772-e1261982281f

Raw Audit Messages
type=AVC msg=audit(1528014657.859:209): avc:  denied  { getattr } for  pid=1944 comm="cat" path="/run/tlp/last_pwr" dev="tmpfs" ino=32209 scontext=system_u:system_r:tlp_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=0


Hash: cat,tlp_t,var_run_t,file,getattr

Version-Release number of selected component:
selinux-policy-3.14.1-30.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.16.13-300.fc28.x86_64
type:           libreport

Potential duplicate: bug 1474386

Comment 1 Lukas Vrabec 2018-06-10 20:57:26 UTC

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


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