FS#47061 - [xorg-server] Runs as root user
Attached to Project:
Arch Linux
Opened by Earnestly (Earnest) - Saturday, 14 November 2015, 02:31 GMT
Last edited by Laurent Carlier (lordheavy) - Tuesday, 17 November 2015, 13:56 GMT
Opened by Earnestly (Earnest) - Saturday, 14 November 2015, 02:31 GMT
Last edited by Laurent Carlier (lordheavy) - Tuesday, 17 November 2015, 13:56 GMT
|
Details
According to ps -fC Xorg, the server now seems to run as
root. Recovering the old behaviour requires modifying the
/etc/X11/Xwrapper.config with needs_root_rights = no. That
is, auto seems to be failing to find the correct
configuration.
Was this changed upstream? |
This task depends upon
Closed by Laurent Carlier (lordheavy)
Tuesday, 17 November 2015, 13:56 GMT
Reason for closing: Fixed
Additional comments about closing: xorg-server-1.18.0-2
Tuesday, 17 November 2015, 13:56 GMT
Reason for closing: Fixed
Additional comments about closing: xorg-server-1.18.0-2
I'm using Intel graphics, with only one /dev/dri/card0. The manual's suggestion of auto potentially failing on multiple cards where some don't support kms shouldn't apply in this case.
I've found Fedora applying a patch to fix some DMs:
http://pkgs.fedoraproject.org/cgit/xorg-x11-server.git/tree/0001-Fedora-hack-Make-the-suid-root-wrapper-always-start-.patch
Here lightdm:
root 756 750 0 09:01 tty7 00:02:26 /usr/lib/xorg-server/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
The patch doesn't appear to be fixing anything but a hack forcing Xorg to run as root by changing the default from auto to yes. The official source code doesn't appear to have changed this default.
For reference, upstream bug: https://bugs.freedesktop.org/show_bug.cgi?id=92894