Title : Running X Without User Privileges

 
Date : 2008-05-12 
Code : 
The <a href="http://en.wikipedia.org/wiki/X_Window_System">X Windowing System</a> is the graphical backbone of most UNIX-like operating systems (and OpenVMS) - despite lots and lots of criticism, the system has withstood the test of time. Despite its age, development on X has not slowed down - in fact, it only seems to have picked up. A few weeks ago, we had <a href="http://www.osnews.com/story/19661/A_Preview_of_Kernel-Based_Mode-Setting">kernel-based mode setting</a>, and today we have the X server <a href="http://airlied.livejournal.com/59521.html">running as user</a> instead of root.<br /><br />There are a lot of problems with running X as root - mostly from a security point of view. David Airlie has succeeded in starting the X server with user rights instead of root privileges. It required only 300 lines of code in the xserver and the driver itself (Intel in this case) and some other locations. It worked - but wasn't particularly stable.
</p><p>
<div class="cquote">Surprisingly it mostly seems to work, I can start the server + gnome-session + DRI2 + compiz + glxgears on a cube, granted it oopses soon afterwards but it does show we are very close to realising the dream.
			
 
# securitydot.net Mon, 13 Oct 2008 13:52:36 +0000