Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1954086

Summary: SELinux is preventing gdm-session-wor from 'read' accesses on the file custom.conf.
Product: [Fedora] Fedora Reporter: Chris Sharp <chrissharp123>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, plautrba, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:344324a481074e2c5de0ec7a97fb9c884a8cad14d4d7d5eeaa16d6038fcfbd87;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-27 15:42:53 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 Chris Sharp 2021-04-27 15:04:52 UTC
Description of problem:
SELinux is preventing gdm-session-wor from 'read' accesses on the file custom.conf.

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

If you believe that gdm-session-wor should be allowed read access on the custom.conf 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 'gdm-session-wor' --raw | audit2allow -M my-gdmsessionwor
# semodule -X 300 -i my-gdmsessionwor.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:var_run_t:s0
Target Objects                custom.conf [ file ]
Source                        gdm-session-wor
Source Path                   gdm-session-wor
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-34.3-1.fc34.noarch
Local Policy RPM              selinux-policy-targeted-34.3-1.fc34.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.11.15-300.fc34.x86_64 #1 SMP Fri
                              Apr 16 13:41:48 UTC 2021 x86_64 x86_64
Alert Count                   1
First Seen                    2021-04-27 11:01:01 EDT
Last Seen                     2021-04-27 11:01:01 EDT
Local ID                      151ff7ac-f809-47fc-a5b6-d7314b9e5a82

Raw Audit Messages
type=AVC msg=audit(1619535661.885:888): avc:  denied  { read } for  pid=9735 comm="gdm-session-wor" name="custom.conf" dev="tmpfs" ino=1444 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=0


Hash: gdm-session-wor,xdm_t,var_run_t,file,read

Version-Release number of selected component:
selinux-policy-targeted-34.3-1.fc34.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.14.0
hashmarkername: setroubleshoot
kernel:         5.11.15-300.fc34.x86_64
type:           libreport

Potential duplicate: bug 753438

Comment 1 Zdenek Pytela 2021-04-27 15:42:53 UTC

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