Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP id AA2226 ; Mon, 01 Mar 93 10:50:03 EST Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!elroy.jpl.nasa.gov!lll-winken!unixhub!stanford.edu!agate!gaia.CS.Berkeley.EDU!cgd From: cgd@gaia.CS.Berkeley.EDU (Chris G. Demetriou) Newsgroups: comp.os.386bsd.bugs Subject: Patch for secure boot w/insecure console Message-ID: <1lt2tk$m7q@agate.berkeley.edu> Date: 17 Feb 93 10:09:56 GMT Organization: Kernel Hackers 'r' Us Lines: 76 NNTP-Posting-Host: gaia.cs.berkeley.edu [ comment from me, as moderator: well-tested, "important" patches should go to .bugs and .announce. if the quality/importance of the patch is dubious, send it to .bugs -- cgd ] enclosed is a patch to init that keeps 386bsd from giving single-user root shells to users on insecure consoles. if 386bsd is booted single-user from an insecure console, and this patch is installed, init will demand the root password before exec'ing a shell. The booter can simply hit control-d to bring the machine up multi-user. this patch, along with correct BIOS settings and a lack of "insecure" OSs (like DOS) can keep crackers who have access to your console from screwing up your 386bsd setup, chris ========= begin 644 secure-init.diffs M9&EF9B M<F,@+W5S<B]S<F,O<V)I;B]I;FET+FEN<V5C=7)E+TUA:V5F:6QE M("]U<W(O<W)C+W-B:6XO:6YI="]-86ME9FEL90HJ*BH@+W5S<B]S<F,O<V)I M;B]I;FET+FEN<V5C=7)E+TUA:V5F:6QE"49R:2!&96(@,C@@,C Z,#<Z,#4@ M,3DY,@HM+2T@+W5S<B]S<F,O<V)I;B]I;FET+TUA:V5F:6QE"51U92!&96(@ M,38@,#,Z,#DZ,34@,3DY,PHJ*BHJ*BHJ*BHJ*BHJ*BH**BHJ(#$L-B J*BHJ M"BTM+2 Q+#<@+2TM+0H@( H@(%!23T<]"6EN:70*(" C4U)#4ST):6YI="YC M( HK($-&3$%'4RL]("U$4T5#55)%7T-/3E-/3$4@+41$15,*("!$4$%$1#T) M)'M,24)55$E,?0H@($Q$041$/0DM;'5T:6P*("!.3TU!3C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D@(3T@,"D[ M"BL@"0D)?0HK("-E;F1I9@H@( D)"65X96-L*"(O8FEN+W-H(BP@(BTB+" H B8VAA<B J*3 I.PH@( D)"5]E>&ET*#$R-RD["B @"0E]"G-H end -- Chris G. Demetriou cgd@cs.berkeley.edu MENTALLY CONTAMINATED and proud of it!