[RFC] Xdummy standalone binary or "-dummy" switch

Alan Coopersmith alan.coopersmith at oracle.com
Fri Sep 30 14:12:06 PDT 2011


>  if ( (geteuid() != getuid()) ) {

It's not that simple to check for elevated privs in a world with
saved setids and other forms of privilege manipulation - issetugid() is
useful if it's available - for instance see:
http://cgit.freedesktop.org/xorg/lib/libX11/tree/src/xlibi18n/lcFile.c#n234

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list