Date: Mon, 15 Jan 2007 23:00:39 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Dirk Engling <erdgeist@erdgeist.org> Cc: freebsd-security@freebsd.org Subject: Re: HEADS UP: Re: FreeBSD Security Advisory FreeBSD-SA-07:01.jail Message-ID: <20070115220039.GB2839@garage.freebsd.pl> In-Reply-To: <45ABEEEE.4030609@erdgeist.org> References: <200701111841.l0BIfWOn015231@freefall.freebsd.org> <45A6DB76.40800@freebsd.org> <20070113112937.GI90718@garage.freebsd.pl> <45ABDC7C.6060407@erdgeist.org> <20070115210826.GA2839@garage.freebsd.pl> <45ABEEEE.4030609@erdgeist.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Mon, Jan 15, 2007 at 10:15:26PM +0100, Dirk Engling wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Pawel Jakub Dawidek wrote:
>
> > In other words, it may break existing configurations.
>
> Sorry, I meant "pwd -P" and assumed that, according to pwds man page, to
> be default.
Ok, this may work...
> > --> Race <--
> >
> >> cp -f ${temp_log} console.log
>
> No, since that directory is your cwd, you operate on ./ which wont
> change by setting soft links along the path. You won't even be able to
> remove that directory in the first place since the directories vnode is
> locked.
console.log can still be a softlink. I don't see option for cp(1) which
allows to not following symlinks, so I'd suggest 'mv -f' instead -
rename(2) doesn't follow symlinks.
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd@FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
iD8DBQFFq/mHForvXbEpPzQRAmCjAJ4lsJhGf06lcbj3MYYOe0IhWAsvTgCeJfOF
uV+zaNeiFv+ZlOHsKfphh8M=
=gmTr
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070115220039.GB2839>
