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 1855413 - SELinux is preventing login from 'getattr' accesses on the filesystem /proc.
Summary: SELinux is preventing login from 'getattr' accesses on the filesystem /proc.
Keywords:
Status: CLOSED DUPLICATE of bug 1853730
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e8c35fce82d833335d0bd96c9fd...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-09 19:36 UTC by Matt Fagnani
Modified: 2020-07-10 08:34 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-10 08:34:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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