[PATCH xserver] check for elevated privileges rather than just euid=0

Antoine Martin antoine at nagafix.co.uk
Thu Oct 6 08:30:24 PDT 2011


On 06/10/11 20:39, Michal Suchanek wrote:
> Hello,
>
> I would like to check this out but how do I tell this actually works?
I use this patch for using Xorg as an "Xdummy" server, like so:
/usr/local/bin/Xorg +extension GLX +extension RandR +extension Render
-logfile $HOME/log -config $HOME/xorg.conf'
My "Xdummy" xorg.conf can be found here:
http://xpra.org/src/Xdummy/xorg.conf

This will fail without the patch since you cannot use your own config or
log file location.
You can then "chmod +s" Xorg and it will then refuse to honour those flags.
> Xephyr and Xvfb already run as non-root, Xorg needs device access to
> run which will likely fail as non-root.
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:
http://www.mail-archive.com/xorg-devel@lists.x.org/msg25230.html

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.

Cheers
Antoine
> Thanks
> Michal

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20111006/1cdf330e/attachment.htm>


More information about the xorg-devel mailing list