Bug 1855731

Summary: SELinux is preventing cockpit-session from 'getattr' accesses on the filesystem /proc.
Product: [Fedora] Fedora Reporter: Wilde Geist <cyberabattoir>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, mmalik, plautrba, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6452c11311b8d35f64bfcb77ec0a48738d03805afbc9df00656c47d3bf1d263b;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-20 13:58:41 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:
Attachments:
Description Flags
File: moloch_155.png none

Description Wilde Geist 2020-07-10 11:11:15 UTC
Description of problem:
SELinux is preventing cockpit-session from 'getattr' accesses on the filesystem /proc.

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

If you believe that cockpit-session 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 'cockpit-session' --raw | audit2allow -M my-cockpitsession
# semodule -X 300 -i my-cockpitsession.pp

Additional Information:
Source Context                system_u:system_r:cockpit_session_t:s0
Target Context                system_u:object_r:proc_t:s0
Target Objects                /proc [ filesystem ]
Source                        cockpit-session
Source Path                   cockpit-session
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 07:21:31 CDT
Last Seen                     2020-07-09 07:21:31 CDT
Local ID                      78ee124f-fdbe-41dd-8ea9-c37d3680a25f

Raw Audit Messages
type=AVC msg=audit(1594297291.344:374): avc:  denied  { getattr } for  pid=4343 comm="cockpit-session" name="/" dev="proc" ino=1 scontext=system_u:system_r:cockpit_session_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=filesystem permissive=0


Hash: cockpit-session,cockpit_session_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 Wilde Geist 2020-07-10 11:11:18 UTC
Created attachment 1700573 [details]
File: moloch_155.png

Comment 2 Zdenek Pytela 2020-07-20 13:58:41 UTC

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