Bug 51913

Summary: Xserver shouldn't run as root
Product: xorg Reporter: wbrana
Component: Server/DDX/XorgAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: enhancement    
Priority: medium CC: nikoli
Version: 7.7 (2012.06)   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
patch requires user xorg present in system none

Description wbrana 2012-07-09 14:22:14 UTC
Created attachment 64021 [details] [review]
patch requires user xorg present in system

Xserver should setuid to non-root if started as root
Comment 1 Alan Coopersmith 2012-07-09 14:34:10 UTC
Ick, making Xorg fatal error because you silently started requiring a new user
account be created first seems like a horrible plan.

This also breaks regeneration, when the X server needs uid 0 back to rotate
log files, re-open devices, etc.   There are ways we can drop privileges
(I've been shipping a much more complex patch in the Solaris Xorg for years
 for that), but this isn't a good one.
Comment 2 Adam Jackson 2018-06-13 17:39:02 UTC
Xorg can do this now.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.