Bug 1600717 - SELinux is preventing upowerd from 'getattr' accesses on the file /var/lib/upower/history-rate-Sony_Interactive_Entertainment_Wireless_Controller-f4:93:9f:56:03:cb.dat.
Summary: SELinux is preventing upowerd from 'getattr' accesses on the file /var/lib/up...
Keywords:
Status: CLOSED DUPLICATE of bug 1600718
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2634f1f24d96fc1e2f0dadd1610...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-12 20:30 UTC by Mikhail
Modified: 2018-07-22 11:38 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-22 11:38:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2018-07-12 20:30:10 UTC
Description of problem:
SELinux is preventing upowerd from 'getattr' accesses on the file /var/lib/upower/history-rate-Sony_Interactive_Entertainment_Wireless_Controller-f4:93:9f:56:03:cb.dat.

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

If you believe that upowerd should be allowed getattr access on the history-rate-Sony_Interactive_Entertainment_Wireless_Controller-f4:93:9f:56:03:cb.dat 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 'upowerd' --raw | audit2allow -M my-upowerd
# semodule -X 300 -i my-upowerd.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:devicekit_var_lib_t:s0
Target Objects                /var/lib/upower/history-rate-Sony_Interactive_Ente
                              rtainment_Wireless_Controller-f4:93:9f:56:03:cb.da
                              t [ file ]
Source                        upowerd
Source Path                   upowerd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-26.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.18.0-0.rc0.git9.1.fc29.x86_64 #1
                              SMP Thu Jun 14 18:07:49 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-07-11 08:41:20 +05
Last Seen                     2018-07-11 08:41:20 +05
Local ID                      5b442db9-4f11-4a55-ad09-2821b6a16798

Raw Audit Messages
type=AVC msg=audit(1531280480.721:500): avc:  denied  { getattr } for  pid=1278 comm="upowerd" path="/var/lib/upower/history-rate-Sony_Interactive_Entertainment_Wireless_Controller-f4:93:9f:56:03:cb.dat" dev="sdc1" ino=6160683 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:devicekit_var_lib_t:s0 tclass=file permissive=1


Hash: upowerd,init_t,devicekit_var_lib_t,file,getattr

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

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.18.0-0.rc4.git3.1.local.fc29.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2018-07-22 11:38:56 UTC

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


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