Re: util-linux: orphan

From: Alessandro Suardi
Date: Wed Dec 27 2006 - 06:24:32 EST

On 12/27/06, Theodore Tso <tytso@xxxxxxx> wrote:
On Tue, Dec 26, 2006 at 07:08:43PM -0800, H. Peter Anvin wrote:
> >I saw that the current Fedora already dynamically links /bin/mount
> >against /usr/lib/ This obviously does not work if
> >/usr is a separate partition that needs to be mounted with /bin/mount.
> >I also had problems with selinux claiming I had no right to access
> >libblkid, which meant that the root fs could not be remounted r/w.
> >
> >I'd suggest that you make sure that mount always gets statically linked
> >against libblkid to avoid these problems.
> That's a pretty silly statement. The real issue is that any library
> needed by binaries in /bin or /sbin should live in /lib, not /usr/lib.

From a Debian unstable system:

think:~# ldd /bin/mount => (0xffffe000) => /lib/ (0xb7f23000) => /lib/ (0xb7f20000) => /lib/ (0xb7ddf000) => /lib/ (0xb7dcd000) => /lib/ (0xb7db8000) => /lib/ (0xb7d77000) => /lib/ (0xb7d61000)
/lib/ (0xb7f3f000) => /lib/ (0xb7d5d000)

... and in fact the e2fsprogs's configure program normally installs
the critical libraries used by mount, fsck, e2fsck, including the
blkid and uuid libraries, in /lib, not /usr/lib. If blkid is being
installed in /usr/lib in Fedora, someone must have gone out of their
way to override e2fsprogs' defaults, which are designed to do the
right things by default. (Basically, because I generally don't trust
the choices made by distributions' packaging engineers, having been
burned more than once. :-)

- Ted

FC6-current for i386 has it right:

[root@sandman ~]# rpm -qf /bin/mount
[root@sandman ~]# ldd /bin/mount => (0xb7f63000) => /lib/ (0x4b607000) => /lib/ (0x4b601000) => /lib/ (0x49ce5000) => /lib/ (0x00aec000) => /lib/ (0x49cfe000) => /lib/ (0x00c54000) => /lib/ (0x4a603000)
/lib/ (0x0011d000)


"...when I get it, I _get_ it"

(Lara Eidemiller)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at