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
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Jan de Groot (JGC)
Andreas Radke (AndyRTR)
Laurent Carlier (lordheavy)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

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
Comment by Earnestly (Earnest) - Saturday, 14 November 2015, 02:48 GMT
Just to update this information a little more.

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.
Comment by Andreas Radke (AndyRTR) - Saturday, 14 November 2015, 12:47 GMT
What display manager do you use?

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
Comment by Earnestly (Earnest) - Saturday, 14 November 2015, 13:28 GMT
I'm using xinit directly, https://github.com/Earnestly/dotfiles/blob/master/local/bin/sx

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.
Comment by Daniel M. Capella (polyzen) - Sunday, 15 November 2015, 05:03 GMT
`startx`, here. Also experiencing this
Comment by Laurent Carlier (lordheavy) - Tuesday, 17 November 2015, 10:16 GMT
Please check with xorg-server-1.18.0-2

For reference, upstream bug: https://bugs.freedesktop.org/show_bug.cgi?id=92894
Comment by Earnestly (Earnest) - Tuesday, 17 November 2015, 13:49 GMT
Confirmed 1.18.0-2 Xorg runs as my user once again

Loading...