From owner-freebsd-security Mon Apr 20 15:29:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA10808 for freebsd-security-outgoing; Mon, 20 Apr 1998 15:29:30 -0700 (PDT) (envelope-from owner-freebsd-security@FreeBSD.ORG) Received: from indigo.ie (nsmart@ts01-56.waterford.indigo.ie [194.125.139.119]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA10634 for ; Mon, 20 Apr 1998 22:28:36 GMT (envelope-from rotel@indigo.ie) Received: (from nsmart@localhost) by indigo.ie (8.8.8/8.8.7) id XAA01146; Mon, 20 Apr 1998 23:25:24 +0100 (IST) (envelope-from rotel@indigo.ie) From: Niall Smart Message-Id: <199804202225.XAA01146@indigo.ie> Date: Mon, 20 Apr 1998 23:25:23 +0000 In-Reply-To: Peter Jeremy "Re: suid/sgid programs" (Apr 20, 10:00am) Reply-To: rotel@indigo.ie X-Mailer: Mail User's Shell (7.2.6 beta(3) 11/17/96) To: Peter Jeremy , freebsd-security@FreeBSD.ORG Subject: Re: suid/sgid programs Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk On Apr 20, 10:00am, Peter Jeremy wrote: } Subject: Re: suid/sgid programs > On Mon, 20 Apr 1998 00:09:43 +0000, Niall Smart wrote: > > lpd can be root.wheel 770 and immediately > >setuid to "lp" after opening the socket. > > This means that lpd may not be able to read the user's file. Either > lpr has to always copy the file to be printed (which is slow and may > mean lots of spool space), or you can only print world-readable files. The default action of lpr is to make a copy of the file, and I don't believe the price for losing -s capability is such a bad thing to pay for less setuid binaries, especially since most folk don't know about it, and those that do can write a script to temporarily remove read access from the current directory and rename file file to something unguessable. I know this isn't ideal, but its not a bad tradeoff IMO. Niall -- Niall Smart. PGP: finger njs3@motmot.doc.ic.ac.uk FreeBSD: Turning PC's into Workstations: www.freebsd.org Annoy your enemies and astonish your friends: echo "#define if(x) if (!(x))" >> /usr/include/stdio.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe security" in the body of the message