Bug 2196607

Summary: SELinux is preventing polkitd from 'read' accesses on the file com.github.woeusb.woeusb-ng.policy.
Product: [Fedora] Fedora Reporter: reto.roberto
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: dwalsh, lvrabec, mmalik, nknazeko, omosnacek, pkoncity, reto.roberto, vmojzis, zpytela
Target Milestone: ---Flags: zpytela: needinfo? (reto.roberto)
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:695bb221038ff1a314520f8d4461e4f85cd85140d995a15641eb6d2910164249;VARIANT_ID=kde;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-26 16: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:
Attachments:
Description Flags
File: description
none
File: os_info none

Description reto.roberto 2023-05-09 13:57:42 UTC
Description of problem:
SELinux is preventing polkitd from 'read' accesses on the file com.github.woeusb.woeusb-ng.policy.

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

If you believe that polkitd should be allowed read access on the com.github.woeusb.woeusb-ng.policy 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 'polkitd' --raw | audit2allow -M my-polkitd
# semodule -X 300 -i my-polkitd.pp

Additional Information:
Source Context                system_u:system_r:policykit_t:s0
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                com.github.woeusb.woeusb-ng.policy [ file ]
Source                        polkitd
Source Path                   polkitd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.12-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.12-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.2.12-300.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Apr 20 23:05:25 UTC 2023
                              x86_64
Alert Count                   6
First Seen                    2023-05-01 10:54:34 -05
Last Seen                     2023-05-09 08:55:42 -05
Local ID                      9a0c8005-4977-44ce-b78c-f31b43b818d3

Raw Audit Messages
type=AVC msg=audit(1683640542.252:140): avc:  denied  { read } for  pid=914 comm="polkitd" name="com.github.woeusb.woeusb-ng.policy" dev="nvme0n1p6" ino=2219370 scontext=system_u:system_r:policykit_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0


Hash: polkitd,policykit_t,user_home_t,file,read

Version-Release number of selected component:
selinux-policy-targeted-38.12-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.9
reason:         SELinux is preventing polkitd from 'read' accesses on the file com.github.woeusb.woeusb-ng.policy.
package:        selinux-policy-targeted-38.12-1.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.2.12-300.fc38.x86_64
component:      selinux-policy

Comment 1 reto.roberto 2023-05-09 13:57:45 UTC
Created attachment 1963556 [details]
File: description

Comment 2 reto.roberto 2023-05-09 13:57:47 UTC
Created attachment 1963557 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-05-09 14:35:22 UTC
Hello,

Do you know what is the path of the file in question and how it was created?