<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 06/10/11 20:39, Michal Suchanek wrote:
<blockquote
cite="mid:CAOMqctTeMJb4GNWy5Kq7Lm7FaUOpy2Rcq6PHV6QAhj9N9d8Bbw@mail.gmail.com"
type="cite">
<pre wrap="">Hello,
I would like to check this out but how do I tell this actually works?</pre>
</blockquote>
I use this patch for using Xorg as an "Xdummy" server, like so:<br>
/usr/local/bin/Xorg +extension GLX +extension RandR +extension
Render -logfile $HOME/log -config $HOME/xorg.conf'<br>
My "Xdummy" xorg.conf can be found here:<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<a href="http://xpra.org/src/Xdummy/xorg.conf">http://xpra.org/src/Xdummy/xorg.conf</a><br>
<br>
This will fail without the patch since you cannot use your own
config or log file location.<br>
You can then "chmod +s" Xorg and it will then refuse to honour those
flags.<br>
<blockquote
cite="mid:CAOMqctTeMJb4GNWy5Kq7Lm7FaUOpy2Rcq6PHV6QAhj9N9d8Bbw@mail.gmail.com"
type="cite">
<pre wrap="">
Xephyr and Xvfb already run as non-root, Xorg needs device access to
run which will likely fail as non-root.</pre>
</blockquote>
The particular use case which led me to write this patch does not
require any hardware access (dummy driver), for more information on
the changes and the reason why checking for root "is always the
wrong check" please see this discussion:<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<a
href="http://www.mail-archive.com/xorg-devel@lists.x.org/msg25230.html">http://www.mail-archive.com/xorg-devel@lists.x.org/msg25230.html</a><br>
<br>
AFAIK there are a number of things that still need to be addressed
to allow X to run as root against real hardware. This patch does not
try to address any of it.<br>
<br>
Cheers<br>
Antoine<br>
<blockquote
cite="mid:CAOMqctTeMJb4GNWy5Kq7Lm7FaUOpy2Rcq6PHV6QAhj9N9d8Bbw@mail.gmail.com"
type="cite">
<pre wrap="">
Thanks
Michal
</pre>
</blockquote>
<br>
</body>
</html>