Bug 1855413

Summary: SELinux is preventing login from 'getattr' accesses on the filesystem /proc.
Product: [Fedora] Fedora Reporter: Matt Fagnani <matt.fagnani>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, mmalik, plautrba, vmojzis, zpytela
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e8c35fce82d833335d0bd96c9fd1ec40c4bfd6ba59de297e616fa62f2b417c90;VARIANT_ID=kde;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-10 08:34:55 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 Matt Fagnani 2020-07-09 19:36:28 UTC
Description of problem:
I was using a Fedora Rawhide KDE Plasma spin installation. I logged out of Plasma 5.19.2 on Wayland. sddm appeared. I switched to VT2 and VT3 using ctrl+alt+f2 and ctrl+alt+f3, but the login prompt didn't appear. When I switched to VT4, the login prompt appeared and I could log in properly. I noticed in the setroubleshoot GUI that login was denied getattr on /proc. That denial might have been why the login prompt didn't appear on VT2 and VT3.

SELinux is preventing login from 'getattr' accesses on the filesystem /proc.

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

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

Additional Information:
Source Context                system_u:system_r:local_login_t:s0-s0:c0.c1023
Target Context                system_u:object_r:proc_t:s0
Target Objects                /proc [ filesystem ]
Source                        login
Source Path                   login
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           filesystem-3.14-2.fc32.x86_64
SELinux Policy RPM            selinux-policy-targeted-3.14.6-18.fc33.noarch
Local Policy RPM              selinux-policy-targeted-3.14.6-18.fc33.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.8.0-0.rc4.1.fc33.x86_64 #1 SMP
                              Tue Jul 7 19:24:41 UTC 2020 x86_64 x86_64
Alert Count                   3
First Seen                    2020-07-09 14:33:08 EDT
Last Seen                     2020-07-09 14:33:14 EDT
Local ID                      3612219b-fb29-4eec-b081-fc62a791a09c

Raw Audit Messages
type=AVC msg=audit(1594319594.116:450): avc:  denied  { getattr } for  pid=8288 comm="login" name="/" dev="proc" ino=1 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_t:s0 tclass=filesystem permissive=0


Hash: login,local_login_t,proc_t,filesystem,getattr

Version-Release number of selected component:
selinux-policy-targeted-3.14.6-18.fc33.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.13.1
hashmarkername: setroubleshoot
kernel:         5.8.0-0.rc4.20200708gitdcde237b9b0e.1.fc33.x86_64
type:           libreport

Comment 1 Matt Fagnani 2020-07-10 08:34:55 UTC

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