Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 551706 - x11-base/xorg-server should require systemd and dbus when missing 'suid' USE flag
Summary: x11-base/xorg-server should require systemd and dbus when missing 'suid' USE ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-10 20:53 UTC by Nicholas Fish
Modified: 2016-03-17 21:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Fish 2015-06-10 20:53:48 UTC
I attempted to run Xorg as a non-root user. However, I was unable to access my card no matter which dev permissions I changed. Non-root users' X logs indicated "no primary bus or device found" where root user had no issues. My best explanation is that my user lacks the (root) rights necessary to become the DRM master (for /dev/dri/card0), even though I provided the user with rw permissions to the relevant dev node.

Per the information at http://hansdegoede.livejournal.com/14268.html, my understanding is that systemd and D-Bus (two pieces of software not present on my system) will provision these rights to users who wish to run Xorg.

Reproducible: Always

Steps to Reproduce:
1. Follow steps at https://wiki.gentoo.org/wiki/Non_root_Xorg on a system lacking systemd/dbus
2. Attempt to start Xorg as non-root user
Actual Results:  
no primary bus or device found

Expected Results:  
xorg-server ebuild should require systemd and dbus packages to be installed if 'suid' USE flag is not present.

This is a hardened box with Noveau drivers (latest git, 9999).

I have only partially tested this (did not try installing systemd/D-Bus to see if this fixes the issue) so it would be good if someone else can also verify that X will not run with this configuration.
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-06-13 22:18:35 UTC
There are several scenarios where x11-base/xorg-server[-suid] works fine without systemd/dbus.
You are correct that running "startx" as normal user is not one of them.

The suid flag being enabled by default is enough here, users who choose to disable it better know what they are doing.
Comment 2 Nicholas Fish 2016-03-17 21:10:22 UTC
Eventually succeeded in running Xorg as non-root -- in my case it was an issue of relaxing some constraints resultant from grsecurity options.