[PATCH V4] xserver: check for elevated privileges not uid=0
Michal Suchanek
hramrach at centrum.cz
Tue Oct 11 04:38:08 PDT 2011
Hello,
I added some debug prints and it looks ok.
Tested-by: Michal Suchanek <hramrach at centrum.cz>
BTW it might need some explanation why the server was dropping
privileges in this message:
+ if (seteuid(oldeuid) != 0) {
+ FatalError("Failed to drop privileges. Exiting\n");
Thanks
Michal
$ X +extension GLX +extension RANDR +extension RENDER -logfile /scratc
h/xdummy.log -config ~hramrach/xdummy.conf :1
xf86PrivsElevated: testing.
xf86PrivsElevated: getuid 1000, geteuid 1000, getgid 1000, getgid 0
xf86PrivsElevated: ruid 1000, euid 1000, suid 1000, rgid 1000, egid 0, sgid 0
xf86PrivsElevated: elevated: 1
$ Xorg +extension GLX +extension RANDR +extension RENDER -logfile /scr
atch/xdummy.log -config ~hramrach/xdummy.conf :1
xf86PrivsElevated: testing.
xf86PrivsElevated: getuid 1000, geteuid 1000, getgid 1000, getgid 1000
xf86PrivsElevated: ruid 1000, euid 1000, suid 1000, rgid 1000, egid
1000, sgid 1000
xf86PrivsElevated: elevated: 0
# Xorg +extension GLX +extension RANDR +extension RENDER -logfile
/scratch/xdummy.log -config ~hram
rach/xdummy.conf :1
xf86PrivsElevated: testing.
xf86PrivsElevated: getuid 0, geteuid 0, getgid 0, getgid 0
xf86PrivsElevated: ruid 0, euid 0, suid 0, rgid 0, egid 0, sgid 0
xf86PrivsElevated: elevated: 0
More information about the xorg-devel
mailing list