Bug 51913 - Xserver shouldn't run as root
Summary: Xserver shouldn't run as root
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xorg (show other bugs)
Version: 7.7 (2012.06)
Hardware: All All
: medium enhancement
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
Depends on:
Reported: 2012-07-09 14:22 UTC by wbrana
Modified: 2018-06-13 17:39 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

patch requires user xorg present in system (734 bytes, patch)
2012-07-09 14:22 UTC, wbrana
no flags Details | Splinter Review

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.