Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!fwi.uva.nl!casper From: casper@fwi.uva.nl (Casper H.S. Dik) Newsgroups: comp.windows.x Subject: Re: NOTE: security problem with some setuid X clients under SunOS 4.1 Message-ID: <1529@carol.fwi.uva.nl> Date: 21 Dec 90 09:57:07 GMT References: <1990Dec20.201523.21679@agate.berkeley.edu> <9012202241.AA14875@expire.lcs.mit.edu> Sender: news@fwi.uva.nl Lines: 50 rws@EXPO.LCS.MIT.EDU (Bob Scheifler) writes: > If my understanding of Sun's shared libs and the X > build process is correct, option 3 should be trivial to implement: > just type xmkmf in the xterm and xload directories and recompile. >This should work if your libraries are already installed (but the >next time you rebuild Makefiles in your tree the information will >be lost, and you might forget there's a problem). First a warning: if you run SunOS 4.1, but had your xterm built with SunOS 4.0.x, you're at risk too. Now my solution: You can change the Imake.rules file to generate a non-relative path: (TOP=$PWD, rather than .) Instead of linking with -L../../lib/X -lX11, the linking will be done with -L/usr/local/src/X11R4/lib/X -lX11 (on my system). This is not a very good solution, because it hardwires TOP in the toplevel Makefile. This will make it difficult to move the X source tree around. (You must edit $(TOP)/Makefile, after moving) *** mit/config/Imake.rules.org Sat Mar 31 01:58:27 1990 --- mit/config/Imake.rules Tue Nov 20 12:09:35 1990 *************** *** 606,612 **** echo " $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \ @@\ $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \ @@\ else exit 0; fi @@\ ! $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) imakeflags #endif /* BuildMakefileTarget */ --- 606,612 ---- echo " $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \ @@\ $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \ @@\ else exit 0; fi @@\ ! $(IMAKE_CMD) -DTOPDIR=`cd $(TOP); pwd` -DCURDIR=$(CURRENT_DIR) imakeflags #endif /* BuildMakefileTarget */ -- NOTE: Some machine instructions | Casper H.S. Dik must be executed on the CPU. | casper@fwi.uva.nl (a manual page on the Gould PowerNode) | NIC: !cd151