Bug 2072275 - SELinux is preventing gpgconf from 'read' accesses on the file /etc/passwd.
Summary: SELinux is preventing gpgconf from 'read' accesses on the file /etc/passwd.
Keywords:
Status: CLOSED DUPLICATE of bug 2070350
Alias: None
Product: Fedora
Classification: Fedora
Component: flatpak
Version: 36
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David King
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5f51db79edb96a35335e5d12e35...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-05 22:01 UTC by Michael
Modified: 2022-04-06 07:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-06 07:52:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael 2022-04-05 22:01:34 UTC
Description of problem:
SELinux is preventing gpgconf from 'read' accesses on the file /etc/passwd.

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

If you believe that gpgconf should be allowed read access on the passwd 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 'gpgconf' --raw | audit2allow -M my-gpgconf
# semodule -X 300 -i my-gpgconf.pp

Additional Information:
Source Context                system_u:system_r:flatpak_helper_t:s0
Target Context                system_u:object_r:passwd_file_t:s0
Target Objects                /etc/passwd [ file ]
Source                        gpgconf
Source Path                   gpgconf
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           setup-2.13.9.1-3.fc36.noarch
SELinux Policy RPM            selinux-policy-targeted-36.5-1.fc36.noarch
Local Policy RPM              flatpak-selinux-1.12.7-1.fc36.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.16.16-200.fc35.x86_64 #1 SMP
                              PREEMPT Wed Mar 23 00:44:58 CET 2022 x86_64 x86_64
Alert Count                   2
First Seen                    2022-04-05 23:44:40 CEST
Last Seen                     2022-04-05 23:44:45 CEST
Local ID                      3c43c4ce-ec9f-4bda-9162-fc4a79fc9a6b

Raw Audit Messages
type=AVC msg=audit(1649195085.932:737): avc:  denied  { read } for  pid=12906 comm="gpg" name="passwd" dev="nvme0n1p3" ino=3300790 scontext=system_u:system_r:flatpak_helper_t:s0 tcontext=system_u:object_r:passwd_file_t:s0 tclass=file permissive=1


Hash: gpgconf,flatpak_helper_t,passwd_file_t,file,read

Version-Release number of selected component:
selinux-policy-targeted-36.5-1.fc36.noarch

Additional info:
component:      flatpak
reporter:       libreport-2.17.1
hashmarkername: setroubleshoot
kernel:         5.16.16-200.fc35.x86_64
type:           libreport

Comment 1 Debarshi Ray 2022-04-06 07:52:53 UTC

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


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