Subject: Re: chroot & null mount?
To: None <netbsd-users@netbsd.org>
From: James Hartley <jjhartley@gmail.com>
List: netbsd-users
Date: 08/22/2007 12:23:45
On 8/22/07, Peter Bex <Peter.Bex@xs4all.nl> wrote:
> On Wed, Aug 22, 2007 at 11:43:58AM -0700, James Hartley wrote:
> > Is null mounting /tmp a bad idea?
>
> What's the use of that?
> You can do it, but remember that there are ways to exploit programs that
> use mktemp instead of mkstemp, for example.

So there is no need to have some type of tmp directory available to a
chroot'ed environment?  Or should a tmp directory be created within
the chroot & explicitly purged at system startup?

Jim