what actually uses xdr_mem.c?

Simon Barner barner at in.tum.de
Wed Mar 26 10:21:04 PST 2003


Hi Jeremy,

> The recent XDR fixes the xdrmem_getlong_aligned(),
> xdrmem_putlong_aligned(), xdrmem_getlong_unaligned(),
> xdrmem_putlong_unaligned(), xdrmem_getbytes(), and/or xdrmem_putbytes()
> functions, but it is difficult to know what uses these (going backwards
> manually).
> 
> For example, a simple MD5 (of binaries before and after) shows many
> changes that are probably irrelevant. It is hard to tell if any static
> tools even use those changes; maybe mount_nfs and umount. And maybe
> /usr/lib/librpcsvc*.

I would not rely on the binaries to find out, which programs make use of the
above functions. That's one of the advantages of an open source os ;-)

Something like

   cd /usr/src
   grep -rl 'xdrmem_getlong_aligned' *

will print all the files that contain the string 'xdrmem_getlong_aligned'. Based
on the path name of those file, you will be able to find out which programs use
the xdr* functions.

HTH,
 Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-security/attachments/20030326/fdb09307/attachment.bin


More information about the freebsd-security mailing list