Date: Mon, 4 Aug 2003 15:59:13 +0100 From: Jez Hancock <jez.hancock@munk.nu> To: security@freebsd.org Subject: Re: FreeBSD Security Advisory FreeBSD-SA-03:08.realpath Message-ID: <20030804145913.GA39691@users.munk.nu> In-Reply-To: <200308041010.52904.lists@chrishowells.co.uk> References: <5.0.2.1.1.20030804004417.02bcc920@popserver.sfu.ca> <200308041010.52904.lists@chrishowells.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 04, 2003 at 10:10:52AM +0100, Chris Howells wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > On Monday 04 August 2003 08:54, Colin Percival wrote: > > ? ?Affected applications which were statically linked to the vulnerable > > code would still need to be recompiled. > > I'm just trying to work out which applications on my system are statically > linked or not. Is using ldd the best (well, quickest I suppose) way?: I've just used this: #!/bin/sh cd /var/db/pkg for port in `ls -1d *` do info=`pkg_info -L $port` files=`echo $info | cut -f3 -d:` for file in $files do if [ -x $file ]; then linked=`file $file | grep "statically linked"` if [ -n "$linked" ];then echo "$port contains statically linked files ($file)" break fi fi done done seems to do the trick ok :) -- Jez http://www.munk.nu/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030804145913.GA39691>