Bug 2196607 - SELinux is preventing polkitd from 'read' accesses on the file com.github.woeusb.woeusb-ng.policy. [NEEDINFO]
Summary: SELinux is preventing polkitd from 'read' accesses on the file com.github.woe...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:695bb221038ff1a314520f8d446...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-09 13:57 UTC by reto.roberto
Modified: 2023-06-26 16:58 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-26 16:58:08 UTC
Type: ---
Embargoed:
zpytela: needinfo? (reto.roberto)


Attachments (Terms of Use)
File: description (1.97 KB, text/plain)
2023-05-09 13:57 UTC, reto.roberto
no flags Details
File: os_info (699 bytes, text/plain)
2023-05-09 13:57 UTC, reto.roberto
no flags Details

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?


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