Bug 1941851 - SELinux is preventing /usr/bin/gnome-shell from read, write access on the file /memfd:wayland-cursor (deleted).
Summary: SELinux is preventing /usr/bin/gnome-shell from read, write access on the fil...
Keywords:
Status: CLOSED DUPLICATE of bug 1943787
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:26bc26e57f1859a4a57473f5c2d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-22 22:06 UTC by Mikhail
Modified: 2021-03-31 18:39 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-03-31 18:39:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2021-03-22 22:06:45 UTC
Description of problem:
SELinux is preventing /usr/bin/gnome-shell from read, write access on the file /memfd:wayland-cursor (deleted).

*****  Plugin restorecon (99.5 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 (1.49 confidence) suggests   **************************

If you believe that gnome-shell should be allowed read write 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                   /usr/bin/gnome-shell
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gnome-shell-40.0-1.fc35.x86_64
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-3.14.8-7.fc35.noarch
Local Policy RPM              selinux-policy-targeted-3.14.8-7.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.12.0-0.rc4.175.fc35.x86_64 #1
                              SMP Tue Mar 23 02:17:24 +05 2021 x86_64 x86_64
Alert Count                   1
First Seen                    2021-03-23 02:53:42 +05
Last Seen                     2021-03-23 02:53:42 +05
Local ID                      ab484eda-3c67-48e4-aaa7-d1d86514058e

Raw Audit Messages
type=AVC msg=audit(1616450022.299:233): avc:  denied  { read write } for  pid=1483 comm="gnome-shell" path=2F6D656D66643A7761796C616E642D637572736F72202864656C6574656429 dev="tmpfs" ino=10241 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1616450022.299:233): arch=x86_64 syscall=recvmsg success=yes exit=760 a0=4c a1=7ffeaadc7b00 a2=40000040 a3=0 items=0 ppid=1456 pid=1483 auid=4294967295 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=tty1 ses=4294967295 comm=gnome-shell exe=/usr/bin/gnome-shell subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: gnome-shell,xdm_t,tmpfs_t,file,read,write

Version-Release number of selected component:
selinux-policy-targeted-3.14.8-7.fc35.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.14.0
hashmarkername: setroubleshoot
kernel:         5.12.0-0.rc4.175.fc35.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2021-03-31 18:39:00 UTC

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


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