Bug 2449605 - SELinux is preventing cockpit-wsinsta from 'getattr' accesses on the filesystem /.
Summary: SELinux is preventing cockpit-wsinsta from 'getattr' accesses on the filesyst...
Keywords:
Status: CLOSED COMPLETED
Alias: None
Product: Fedora
Classification: Fedora
Component: cockpit
Version: 44
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jelle van der Waa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7614f0673a7f9eb0dbd39d487f0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-03-20 13:06 UTC by Eugene Mah
Modified: 2026-06-16 09:55 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-06-16 09:55:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.92 KB, text/plain)
2026-03-20 13:06 UTC, Eugene Mah
no flags Details
File: os_info (739 bytes, text/plain)
2026-03-20 13:06 UTC, Eugene Mah
no flags Details

Description Eugene Mah 2026-03-20 13:06:55 UTC
Description of problem:
Alert appears when starting cockpit in the browser.
SELinux is preventing cockpit-wsinsta from 'getattr' accesses on the filesystem /.

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

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

Additional Information:
Source Context                system_u:system_r:cockpit_ws_t:s0
Target Context                system_u:object_r:pidfs_t:s0
Target Objects                / [ filesystem ]
Source                        cockpit-wsinsta
Source Path                   cockpit-wsinsta
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-43.1-1.fc44.noarch
Local Policy RPM              cockpit-ws-selinux-357-1.fc44.x86_64
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.19.9-300.fc44.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Mar 19 21:35:32 UTC 2026
                              x86_64
Alert Count                   39
First Seen                    2026-03-20 07:22:58 EDT
Last Seen                     2026-03-20 09:04:59 EDT
Local ID                      504beab0-63b3-4808-a6de-e99e309d5f44

Raw Audit Messages
type=AVC msg=audit(1774011899.835:1599): avc:  denied  { getattr } for  pid=16530 comm="cockpit-ws" name="/" dev="pidfs" ino=1 scontext=system_u:system_r:cockpit_ws_t:s0 tcontext=system_u:object_r:pidfs_t:s0 tclass=filesystem permissive=0


Hash: cockpit-wsinsta,cockpit_ws_t,pidfs_t,filesystem,getattr

Version-Release number of selected component:
selinux-policy-targeted-43.1-1.fc44.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing cockpit-wsinsta from 'getattr' accesses on the filesystem /.
package:        selinux-policy-targeted-43.1-1.fc44.noarch
component:      cockpit
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.19.9-300.fc44.x86_64
comment:        Alert appears when starting cockpit in the browser.
component:      cockpit

Comment 1 Eugene Mah 2026-03-20 13:06:58 UTC
Created attachment 2134260 [details]
File: description

Comment 2 Eugene Mah 2026-03-20 13:06:59 UTC
Created attachment 2134261 [details]
File: os_info

Comment 3 Jelle van der Waa 2026-03-20 15:33:05 UTC
Thanks for the bug report, I can reproduce this quite trivially.

Comment 4 Jelle van der Waa 2026-06-16 09:55:07 UTC
This was resolved in https://github.com/cockpit-project/cockpit/commits/e204cd130cba38db9be959c7f251472e68db3a0a and build https://bodhi.fedoraproject.org/updates/FEDORA-2026-960b86040a but we forgot to link it to this issue.


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