Bug 1636576 - SELinux is preventing cat from 'read' accesses on the file last_pwr.
Summary: SELinux is preventing cat from 'read' accesses on the file last_pwr.
Keywords:
Status: CLOSED DUPLICATE of bug 1645313
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8a36d62055c24f0cfe80ca2d71e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-05 19:02 UTC by Michael
Modified: 2018-11-04 16:19 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-11-04 16:19:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael 2018-10-05 19:02:42 UTC
Description of problem:
SELinux is preventing cat from 'read' accesses on the file last_pwr.

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

If you believe that cat should be allowed read 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 '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                last_pwr [ file ]
Source                        cat
Source Path                   cat
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-35.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.18.11-301.fc29.x86_64 #1 SMP Mon
                              Oct 1 13:47:10 UTC 2018 x86_64 x86_64
Alert Count                   2
First Seen                    2018-10-05 11:44:23 CEST
Last Seen                     2018-10-05 16:56:12 CEST
Local ID                      4d1c107b-4537-4ec3-89d7-be03708990c1

Raw Audit Messages
type=AVC msg=audit(1538751372.360:251): avc:  denied  { read } for  pid=2295 comm="cat" name="last_pwr" dev="tmpfs" ino=33299 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,read

Version-Release number of selected component:
selinux-policy-3.14.2-35.fc29.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.18.11-301.fc29.x86_64
type:           libreport

Potential duplicate: bug 1564739

Comment 1 Ryan 2018-11-01 22:38:17 UTC
Description of problem:
Wake the computer from sleep while on battery power.

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

Comment 2 Lukas Vrabec 2018-11-04 16:19:34 UTC

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


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