Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424984 - x11-base/xorg-server: allow to run as non-root
Summary: x11-base/xorg-server: allow to run as non-root
Status: RESOLVED DUPLICATE of bug 556834
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 1 vote (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-05 22:11 UTC by wbrana
Modified: 2017-03-04 19:16 UTC (History)
2 users (show)

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


Attachments
patch for testing, insert some UID except 0 instead of SOME USER ID (xorg-server.patch,410 bytes, text/plain)
2012-07-05 22:11 UTC, wbrana
Details
better patch (setuid_to_xorg.diff,734 bytes, patch)
2012-07-09 14:15 UTC, wbrana
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
example:
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
https://bugs.freedesktop.org/show_bug.cgi?id=51913
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 ***