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

Michal Suchanek hramrach at centrum.cz
Fri Oct 7 08:39:24 PDT 2011

Added some debug prints in the function.

The X server falls through to the seteuid(0) check.

That obviously succeeds when your uid is 0.



# /scratch/xserver/build-main/hw/xfree86/Xorg +extension GLX
+extension RANDR +extension RENDER -logfile /scratch/xdummy.log
-config ~hramrach/xdummy.conf :1
xf86PrivsElevated: not tested yet.
xf86PrivsElevated: elevated: seteuid(0)

Fatal server error:
The '-logfile' option cannot be used with elevated privileges.

Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.

More information about the xorg-devel mailing list