Bug 1948072
| Summary: | SELinux is preventing gnome-shell from 'map' accesses on the file /memfd:wayland-cursor (deleted). | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Leslie Satenstein <lsatenstein> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 34 | CC: | dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, plautrba, vmojzis, zpytela |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:a546928b32195bcb210f864ac4e72f25e49a3be48cca88863e7a22af301a42e4;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-04-12 13:53:31 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: | |||
*** This bug has been marked as a duplicate of bug 1943787 *** |
Description of problem: reboot after dnf update SELinux is preventing gnome-shell from 'map' accesses on the file /memfd:wayland-cursor (deleted). ***** Plugin restorecon (92.2 confidence) suggests ************************ If you want to fix the label. /memfd:wayland-cursor (deleted) default label should be etc_runtime_t. Then you can run restorecon. The access attempt may have been stopped due to insufficient permissions to access a parent directory in which case try to change the following command accordingly. Do # /sbin/restorecon -v /memfd:wayland-cursor (deleted) ***** Plugin catchall_boolean (7.83 confidence) suggests ****************** If you want to allow domain to can mmap files Then you must tell SELinux about this by enabling the 'domain_can_mmap_files' boolean. Do setsebool -P domain_can_mmap_files 1 ***** Plugin catchall (1.41 confidence) suggests ************************** If you believe that gnome-shell should be allowed map access on the memfd:wayland-cursor (deleted) file 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 'gnome-shell' --raw | audit2allow -M my-gnomeshell # semodule -X 300 -i my-gnomeshell.pp Additional Information: Source Context system_u:system_r:xdm_t:s0-s0:c0.c1023 Target Context system_u:object_r:tmpfs_t:s0 Target Objects /memfd:wayland-cursor (deleted) [ file ] Source gnome-shell Source Path gnome-shell Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-34.2-1.fc34.noarch Local Policy RPM selinux-policy-targeted-34.2-1.fc34.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 5.11.12-300.fc34.x86_64 #1 SMP Wed Apr 7 16:31:13 UTC 2021 x86_64 x86_64 Alert Count 2 First Seen 2021-04-09 10:34:02 EDT Last Seen 2021-04-09 18:48:20 EDT Local ID b25d8152-75ae-4498-ba63-024671e45aec Raw Audit Messages type=AVC msg=audit(1618008500.697:765): avc: denied { map } for pid=2080 comm="gnome-shell" path=2F6D656D66643A7761796C616E642D637572736F72202864656C6574656429 dev="tmpfs" ino=11265 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file permissive=0 Hash: gnome-shell,xdm_t,tmpfs_t,file,map Version-Release number of selected component: selinux-policy-targeted-34.2-1.fc34.noarch Additional info: component: selinux-policy reporter: libreport-2.14.0 hashmarkername: setroubleshoot kernel: 5.11.12-300.fc34.x86_64 type: libreport Potential duplicate: bug 1941852