Bug 2449605
| Summary: | SELinux is preventing cockpit-wsinsta from 'getattr' accesses on the filesystem /. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Eugene Mah <eugenemah> | ||||||
| Component: | cockpit | Assignee: | Jelle van der Waa <jvanderwaa> | ||||||
| Status: | CLOSED COMPLETED | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 44 | CC: | eugenemah, jvanderwaa, kkoukiou, mmarusak, mpitt, patrick, stefw | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:7614f0673a7f9eb0dbd39d487f07001a30865f1ce3d36a1c8750cbfc047af1ae;VARIANT_ID=kde; | ||||||||
| Fixed In Version: | Doc Type: | --- | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2026-06-16 09:55:07 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: |
|
||||||||
Created attachment 2134260 [details]
File: description
Created attachment 2134261 [details]
File: os_info
Thanks for the bug report, I can reproduce this quite trivially. 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. |
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