Re: HEADS UP: Re: FreeBSD Security Advisory FreeBSD-SA-07:01.jai

看板FB_security作者時間19年前 (2007/01/16 06:10), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/22 (看更多)
--uQr8t48UFsdbeI+V Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 15, 2007 at 10:15:26PM +0100, Dirk Engling wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Pawel Jakub Dawidek wrote: >=20 > > In other words, it may break existing configurations. >=20 > Sorry, I meant "pwd -P" and assumed that, according to pwds man page, to > be default. Ok, this may work... > > --> Race <-- > >=20 > >> cp -f ${temp_log} console.log >=20 > 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. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --uQr8t48UFsdbeI+V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFq/mHForvXbEpPzQRAmCjAJ4lsJhGf06lcbj3MYYOe0IhWAsvTgCeJfOF uV+zaNeiFv+ZlOHsKfphh8M= =gmTr -----END PGP SIGNATURE----- --uQr8t48UFsdbeI+V--
文章代碼(AID): #15g_lc00 (FB_security)
討論串 (同標題文章)
完整討論串 (本文為第 9 之 22 篇):
文章代碼(AID): #15g_lc00 (FB_security)