[PATCH xserver] check for elevated privileges not uid=0 (V2)

Michal Suchanek hramrach at centrum.cz
Mon Oct 10 07:40:25 PDT 2011


Hello,

On 10 October 2011 16:07, Antoine Martin <antoine at nagafix.co.uk> wrote:
> This allows us to run the server as a normal user whilst still
> being able to use the -modulepath, -logfile and -config switches

Thanks for the patch.

Works for me on Debian with recent X server git.

Tested-by: Michal Suchanek <hramrach at centrum.cz>

 $ X +extension GLX +extension RANDR +extension RENDER -logfile
/scratch/xdummy.log -config ~hramrach/xdummy.conf :1
xf86PrivsElevated: not tested yet.
xf86PrivsElevated: elevated: uid 1000, euid 1000, gid 1000, egid 0.

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

$ Xorg +extension GLX +extension RANDR +extension RENDER -logfile
/scratch/xdummy.log -config ~hramrach/xdummy.conf :1
xf86PrivsElevated: not tested yet.

X.Org X Server 1.11.0
...

# X +extension GLX +extension RANDR +extension RENDER -logfile
/scratch/xdummy.log -config ~hramrach/xdummy.conf :1
xf86PrivsElevated: not tested yet.

X.Org X Server 1.11.0
...


More information about the xorg-devel mailing list