Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7714 - Some ebuilds fail with /bin/sh statically linked
Summary: Some ebuilds fail with /bin/sh statically linked
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 8355 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-09 17:43 UTC by Robert Coie (RETIRED)
Modified: 2004-04-18 13:04 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Coie (RETIRED) gentoo-dev 2002-09-09 17:43:16 UTC
Discussed in detail in forum thread #14323, some users prefer to statically link
/bin/sh, as it is root's shell, for security reasons.  This choice causes a
problem with some ebuilds, including the portage ebuild, that use 'ldd /bin/sh'
to  discover the active version of glibc.  Some tests by forum user t011 have
deternmined preliminarily that using another common system executable, such as
/bin/cp or /bin/su, will provide the same information and make these ebuilds
robust even in the face of a statically linked bash.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-11 15:44:21 UTC
/bin/sash is statically linked ?
Comment 2 Robert Coie (RETIRED) gentoo-dev 2002-09-11 16:06:49 UTC
The sash suggestion is very good, and I will make it to the forums.  Please
assume that that will be an acceptable solution, and do not worry further about
this issue.  Thank you for taking the time to comment.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-11 16:46:24 UTC
If any other comments, please let me know.

The main reason why we will be a bit "anti" static /bin/sh, is because currently
the sandbox implementation we use, make use of the LD_PRELOAD method.  If
thus /bin/bash or /bin/sh which are the main shell interpreters, are static,
you will not be able to catch any pipe's, etc that violates the sandbox.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-29 07:12:03 UTC
*** Bug 8355 has been marked as a duplicate of this bug. ***
Comment 5 Sascha Silbe 2002-09-29 14:47:25 UTC
OK, then what about an extra package for a statically linked bash? I need it for shellscripts (which use bash features, so sash does not suffice) in chroot environments.
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-19 18:02:49 UTC
Will look into sbash issue if I get the time.
Comment 7 SpanKY gentoo-dev 2004-04-18 13:04:20 UTC
portage no longer requires /bin/sh to be statically linked

if you know of other apps, file bugs for them