Bug 1758808

Summary: SELinux is preventing boltd from 'getattr' accesses on the lnk_file /sys/bus/wmi/devices/F6CB5C3C-9CAE-4EBD-B577-931EA32A2CC0.
Product: [Fedora] Fedora Reporter: Wm Wofford <william_wofford>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: angelapuget, dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:93c67c027aca812043da493589b8f78f909a95f062c8a975a6f91a11399df639;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-07 08:58:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wm Wofford 2019-10-05 21:02:08 UTC
Description of problem:
SELinux is preventing boltd from 'getattr' accesses on the lnk_file /sys/bus/wmi/devices/F6CB5C3C-9CAE-4EBD-B577-931EA32A2CC0.

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

If you believe that boltd should be allowed getattr access on the F6CB5C3C-9CAE-4EBD-B577-931EA32A2CC0 lnk_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 'boltd' --raw | audit2allow -M my-boltd
# semodule -X 300 -i my-boltd.pp

Additional Information:
Source Context                system_u:system_r:boltd_t:s0
Target Context                system_u:object_r:sysfs_t:s0
Target Objects                /sys/bus/wmi/devices/F6CB5C3C-9CAE-4EBD-B577-931EA
                              32A2CC0 [ lnk_file ]
Source                        boltd
Source Path                   boltd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.4-36.fc31.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.3.1-300.fc31.x86_64 #1 SMP Tue
                              Sep 24 21:00:05 UTC 2019 x86_64 x86_64
Alert Count                   3
First Seen                    2019-10-05 15:42:52 CDT
Last Seen                     2019-10-05 15:59:12 CDT
Local ID                      68153098-baa6-4a72-bdb8-795bafeadc58

Raw Audit Messages
type=AVC msg=audit(1570309152.311:251): avc:  denied  { getattr } for  pid=2218 comm="boltd" path="/sys/bus/wmi/devices/F6CB5C3C-9CAE-4EBD-B577-931EA32A2CC0" dev="sysfs" ino=23110 scontext=system_u:system_r:boltd_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=lnk_file permissive=0


Hash: boltd,boltd_t,sysfs_t,lnk_file,getattr

Version-Release number of selected component:
selinux-policy-3.14.4-36.fc31.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.1
hashmarkername: setroubleshoot
kernel:         5.3.1-300.fc31.x86_64
type:           libreport

Potential duplicate: bug 1758732

Comment 1 Angie 2019-10-07 00:42:46 UTC
Description of problem:
new install Fedora 31 on razer blade stealth 13

Version-Release number of selected component:
selinux-policy-3.14.4-36.fc31.noarch

Additional info:
reporter:       libreport-2.10.1
hashmarkername: setroubleshoot
kernel:         5.3.2-300.fc31.x86_64
type:           libreport

Comment 2 Lukas Vrabec 2019-10-07 08:58:08 UTC

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