FreeBSD Security Advisory FreeBSD-SA-03:08.realpath

Peter Pentchev roam at ringlet.net
Mon Aug 4 02:17:05 PDT 2003


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?:
> 
> su-2.05b# ldd `which nfsd`
> ldd: /sbin/nfsd: not a dynamic executable

file(1) might be quicker:

[roam at straylight ~]> file /sbin/nfsd
/sbin/nfsd: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 4.8, statically linked, stripped
[roam at straylight ~]> file /usr/bin/file
/usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 4.8, dynamically linked (uses shared libs), stripped

G'luck,
Peter

-- 
Peter Pentchev	roam at ringlet.net    roam at sbnd.net    roam at FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
If you think this sentence is confusing, then change one pig.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-security/attachments/20030804/3f12b6c6/attachment.bin


More information about the freebsd-security mailing list