home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:9422 comp.unix.programmer:3911 comp.unix.wizards:3307
- Newsgroups: comp.unix.questions,comp.unix.programmer,comp.unix.wizards
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!mips!darwin.sura.net!convex!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: Making ``.plan'' EXECUTE a Program ???
- Message-ID: <1992Jul25.133747.13774@news.eng.convex.com>
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Nntp-Posting-Host: pixel.convex.com
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- Organization: CONVEX Realtime Development, Colorado Springs, CO
- References: <1992Jul24.131605.8213@news.eng.convex.com> <1992Jul24.182737.22945@aston.ac.uk>
- Date: Sat, 25 Jul 1992 13:37:47 GMT
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 29
-
- From the keyboard of evansmp@uhura.aston.ac.uk (Mark Evans):
- :No this is braindead.
- :Why?
- :this means that user id -2 must have read access to the file.
- :this means that the users dir must be searchable by anyone.
-
- yeah, so? sure is a lot cleaner than making a special command
- to read protected files (like .plans) -- safer, too.
-
- :The point is that fingerd (running as root) should be able to read
- :.plan, it should however check that it is not a link to a file
- :the user shouldn't be reading.
-
- witness the stack of contortions you're going through for protection.
- just let unix do this for you with open perms.
-
- :Also fork is an expensive operation, a stat(2) call is much simpler.
-
- you're a server, so you're forking anyway.
-
- and unless you open the file first and fstat the descriptor, somebody
- can play games with you when you're not looking.
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
- I wish there was a knob on the TV to turn up the intelligence. There's
- a knob called "brightness", but it doesn't work.
- -- Gallagher
-