Subject: Re: pkg/7076: "install" scripts are not working in pkg_install-19990119
To: Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
From: Greg A. Woods <woods@most.weird.com>
List: netbsd-bugs
Date: 03/03/1999 13:28:13
[ On Wednesday, March 3, 1999 at 18:24:43 (+0100), Hubert Feyrer wrote: ]
> Subject: Re: pkg/7076: "install" scripts are not working in  pkg_install-19990119
>
> On Wed, 3 Mar 1999, Greg A. Woods wrote:
> > It only seems to confirm that the "permission denied" message is indeed
> > coming from the shell and directly as a result of a failed execve().
> 
> Another idea - do you have _any_ partition mounted noexec?
> What does "mount" say?

Argh!  Argh!  Double Argh!  and Argv!

That couldn't have been the case if I'd copied over the original pkg_add
command to the machine I'd been testing on, but no I had to go and try
the pkg_add iteslf on the truely virgin machine.

Setting TMPDIR to a directory on a not-noexec filesystem solved the
problem.  Perhaps I/we should always set root's TMPDIR to a private
space anyway (at least on true multi-user machines), if only to avoid
leaving open file access race-condition attacks.

Grrr.  I really detest the way Unix has grown to massively over-load the
meaning of errno codes.  Once upon a time an EACCESS from the exec(2)
family mean only that there were not sufficient execute bits....  I
promise to read every relavant manual page twice as penance.

Thanks very much Hubert for all your help!  Please close this PR now!  ;-)

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>