Path: utzoo!attcan!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: news.admin Subject: Re^2: mkdir plots (was: mkdir() and security hole) Message-ID: <1867@solo1.cs.vu.nl> Date: 6 Jan 89 23:56:43 GMT References: <871@husc6.harvard.edu> <9466@merch.TANDY.COM> <851@husc6.harvard.edu> <10845@swan.ulowell.edu> <876@husc6.harvard.edu> <1849@piraat.cs.vu.nl> <13306@ncoast.UUCP> <2419@grian.cps.altadena.ca.us> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 22 liz@grian.cps.altadena.ca.us (Liz Allen-Mitchell) writes: \Why does mkdir() make the directory with root ownership in the first \place? Why can't it create the node as owned by the user calling mkdir \in the first place? That's precisely the bug in the mknod() system call: you cannot specify the owner! :-( \Other side of the question: Why doesn't this hole appear when files \are created? Or does it?!? \-- Files needn't be created by mknod(): there's creat() or open(). \ - Liz Allen-Mitchell liz@grian.cps.altadena.ca.us \ ames!elroy!grian!liz \"God is light; in him there is no darkness at all." -- 1 John 1:5b Is there no darkness in Iran, Chili, South-Africa, Auschwitz, etc. etc. ETC.? -- Lee Harvey Oswald was a patsy. |Maarten Litmaath @ VU Amsterdam: Or a superman. |maart@cs.vu.nl, mcvax!botter!maart