Patch for non-setuid luit on FreeBSD 5.X

Dejan Lesjak dejan.lesjak at ijs.si
Thu Mar 24 18:41:03 PST 2005


Since FreeBSD 5 includes pseudo-terminal access functions grantpt(3) and 
others, we should be able to make use of them instead of having luit 
installed setuid.
So testers are welcome to try the patch. Users of Xorg need to grab 
http://www.ijs.si/~lesi/xorg/luit/patch-luit_grantpt
and put it in x11/xorg-clients/files directory. XFree86-4-clients needs a 
change in Makefile, so the patch for port is here:
http://www.ijs.si/~lesi/xfree/luit/xf44-luit.diff
It applies in x11/XFree86-4-clients directory.
After this you need to recompile and reinstall xorg- or XFree86-4- -clients 
without having WITH_SETUID_LUIT defined and see if things work as expected 
(ie as before with WITH_SETUID_LUIT defined). And of course let us know how 
it goes.
This will not make a difference on FreeBSD 4.X.


Dejan


More information about the freebsd-x11 mailing list