From owner-freebsd-security Sat Feb 23 12:49:30 2002 Delivered-To: freebsd-security@freebsd.org Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by hub.freebsd.org (Postfix) with ESMTP id 8E2CF37B404 for ; Sat, 23 Feb 2002 12:49:24 -0800 (PST) Received: from admin0 (WBIw010.westbend.net [216.47.253.30]) by mail.westbend.net (8.11.6/8.11.6) with SMTP id g1NKmeX33664; Sat, 23 Feb 2002 14:48:40 -0600 (CST) (envelope-from hetzels@westbend.net) Message-ID: <000501c1bcab$84ff2df0$1efd2fd8@westbend.net> From: "Scot W. Hetzel" To: "Kris Kennaway" Cc: "Milon Papezík" , "'Matthew Dillon'" , "'freebsd-security@freebsd.org'" References: <20020222152529.A16356@xor.obsecurity.org> <20020222152714.B16356@xor.obsecurity.org> Subject: Re: RE: Third /tmp location ? Date: Sat, 23 Feb 2002 14:48:52 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org From: "Kris Kennaway" How about patching find_play_pen to set a variable to say that /usr/tmp was created by the pkg_install tools and then when the pkg_install tools call leave_playpen, /usr/tmp is removed only if the variable is set. attached is a untested patch for pen.c. Scot begin 666 pen.c-patch M26YD97@Z('!E;BYC"CT]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T*4D-3(&9I;&4Z M("]H;VUE+VYC=G,O7!E;BAV;VED*0H@>PI 0" M-#PHK(" @('T@96QS92!I9B H;6MD:7(H(B]U6]U"@B8V]U;&1N)W0@2!D M:7(@)R5S)R(L(%!E;DQO8V%T:6]N*3L*( EP;W!096XH4&5N3&]C871I;VXI M.PHK(" @('T**R @("!I9B H8W)E871E7W5S