Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152173 - shadow requires /usr/lib/libskey.so when built with skey use flag, login fails if /usr not mounted
Summary: shadow requires /usr/lib/libskey.so when built with skey use flag, login fail...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Tavis Ormandy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-20 16:07 UTC by sharpshopter
Modified: 2007-01-05 02:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed bugfix for skey-1.1.5-r5.ebuild (skey.patch,410 bytes, patch)
2007-01-05 02:28 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sharpshopter 2006-10-20 16:07:43 UTC
When sys-apps/shadow is built with the skey use flag enabled, it dynamically links to /usr/libskey.so.1.1.5 (or whatever version).  When /usr is not mounted (for whatever reason), /bin/login fails to start, disabling all console logins, which is likely to be the only method availabe if /usr is not mounted.

Steps to reproduce:
1) set skey use flag
2) emerge sys-apps/shadow with the new use flag (pulling in app-admin/skey)
3) somehow end up with /usr unmounted
4) attempt to login at the console

Actual results:
/bin/login: error while loading shared library /usr/lib/libskey.so.1.1.5: No such file or directory
(this is close to the error message, but not verbatim.  I think we get the idea though)

Expected results:
Login starts and presents the password prompt


Installing /usr/lib/libskey.so to /lib instead would be a fix right?
Comment 1 Ulrich Müller gentoo-dev 2007-01-05 01:46:32 UTC
> Installing /usr/lib/libskey.so to /lib instead would be a fix right?

I just hit the problem here, too.
Binaries in /bin must not depend on a library in /usr/lib.

See also the FHS 2.3, which says about /lib:
| The /lib directory contains those shared library images needed
| to boot the system and run the commands in the root filesystem,
| ie. by binaries in /bin and /sbin. [12]
Comment 2 Ulrich Müller gentoo-dev 2007-01-05 02:28:11 UTC
Created attachment 105461 [details, diff]
Proposed bugfix for skey-1.1.5-r5.ebuild
Comment 3 Tavis Ormandy (RETIRED) gentoo-dev 2007-01-05 02:44:04 UTC
thanks Ulrich, your patch has been applied.