Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 424984

Summary: x11-base/xorg-server: allow to run as non-root
Product: Gentoo Linux Reporter: wbrana
Component: New packagesAssignee: Gentoo X packagers <x11>
Severity: enhancement CC: nikoli, taaroa
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Attachments: patch for testing, insert some UID except 0 instead of SOME USER ID
better patch

Description wbrana 2012-07-05 22:11:04 UTC
Created attachment 317362 [details]
patch for testing, insert some UID except 0 instead of SOME USER ID

xorg-server shouldn't run as root.
Comment 2 wbrana 2012-07-06 17:09:48 UTC
I'm using user xorg
Comment 3 wbrana 2012-07-07 13:03:51 UTC
1. add new user xorg
useradd -u 600 -d /dev/null -s /sbin/nologin xorg
2. replace SOME USER ID with 600 in patch
Comment 4 wbrana 2012-07-09 14:15:17 UTC
Created attachment 317692 [details, diff]
better patch

1. uid of user xorg is read from /etc/passwd
2. if setuid to user xorg fails Xserver is terminated
Comment 5 wbrana 2012-07-09 14:24:39 UTC
upstream bug
Comment 6 Matt Turner gentoo-dev 2017-03-04 19:16:02 UTC
I think USE=suid and a solution to bug 556834 will solve this in a better way.

It's not a direct duplicate, but...

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