Bug 2212300

Summary: Different default security behavior for X11 and Wayland on Fedora
Product: [Fedora] Fedora Reporter: Alexander Zeijlon <alexander.zeijlon>
Component: xorg-x11-xinitAssignee: Adam Jackson <ajax>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: airlied, ajax, negativo17, rhughes, rstrode, xgl-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-22 11:18:00 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:

Description Alexander Zeijlon 2023-06-05 08:34:12 UTC
There seems to be an inconsistency in how the package xorg-x11-xinit and Gnome mutter handles user permissions for the X server.

A few months ago, mutter changed their default behavior such that users are not automatically added as "SI:localuser:<username>" with the motivation that some applications can bypass the X11 permission settings. See https://gitlab.gnome.org/GNOME/mutter/-/commit/b61b0478f7538db27c35dff48f4581a811458116.

In Fedora when starting Gnome with X11, "xhost +SI:localuser:<username>" is set at login by the script /etc/X11/xinit/xinitrc.d/localuser.sh, which is a part of the xorg-x11-xinit package.

The script was added to the package 16 years ago, but I can't find any information about why it was added. See https://src.fedoraproject.org/rpms/xorg-x11-xinit/c/6cf01551afb21a2de9a54fb009d910bb7595fa08.

This now means that there is a difference in security settings in Fedora depending on if users decide to use Gnome under X11 or under Wayland.

Can adding "SI:localuser:<username>" still be considered safe? Or do you have any additional info on why localuser.sh was added initially?

Reproducible: Always

Comment 1 Aoife Moloney 2024-05-22 11:18:00 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.