Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/libexec/ld.aout_so Pull up revisions 1.9-1.10 (requeste...



details:   https://anonhg.NetBSD.org/src/rev/5e43f63dfc6d
branches:  netbsd-1-4
changeset: 470484:5e43f63dfc6d
user:      he <he%NetBSD.org@localhost>
date:      Wed Mar 29 22:17:41 2000 +0000

description:
Pull up revisions 1.9-1.10 (requested by kleink and he):
  Document LD_PRELOAD and note the security restrictions.
  Fixes PR#9663.  Also some spelling fixes.

diffstat:

 libexec/ld.aout_so/rtld.1 |  23 +++++++++++++++++++----
 1 files changed, 19 insertions(+), 4 deletions(-)

diffs (62 lines):

diff -r c5eb06509266 -r 5e43f63dfc6d libexec/ld.aout_so/rtld.1
--- a/libexec/ld.aout_so/rtld.1 Wed Mar 29 22:05:25 2000 +0000
+++ b/libexec/ld.aout_so/rtld.1 Wed Mar 29 22:17:41 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: rtld.1,v 1.8 1999/03/22 18:25:45 garbled Exp $
+.\"    $NetBSD: rtld.1,v 1.8.2.1 2000/03/29 22:17:41 he Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -34,7 +34,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 27, 1995
+.Dd March 24, 2000
 .Dt RTLD 1
 .Os
 .Sh NAME
@@ -55,7 +55,7 @@
 .Xr mmap 2
 system call.
 .Pp
-After all shared libraries have been succesfully loaded,
+After all shared libraries have been successfully loaded,
 .Nm
 proceeds to resolve external references from both the main program and
 all objects loaded. A mechanism is provided for initialisation routines
@@ -144,6 +144,12 @@
 .It Ev LD_LIBRARY_PATH
 A colon separated list of directories, overriding the default search path
 for shared libraries.
+.It Ev LD_PRELOAD
+A colon separated list of shared object filenames to be loaded
+.Em after
+the main program but
+.Em before
+its shared object dependencies.
 .It Ev LD_WARN_NON_PURE_CODE
 When set, issue a warning whenever a link-editing operation requires
 modification of the text segment of some loaded object. This is usually
@@ -177,7 +183,7 @@
 The value of the environment variable
 .Ev LD_TRACE_LOADED_OBJECTS_PROGNAME
 .It \&%o
-The libary name.
+The library name.
 .It \&%m
 The library's major version number.
 .It \&%n
@@ -219,3 +225,12 @@
 .Xr ldconfig 8
 .Sh HISTORY
 The shared library model employed first appeared in SunOS 4.0.
+.Pp
+.Sh SECURITY CONSIDERATIONS
+The environment variables
+.Ev LD_LIBRARY_PATH
+and
+.Ev LD_PRELOAD
+are not honored when executing in a set-user-ID or set-group-ID environment.
+This action is taken to prevent malicious substitution of shared object
+dependencies or interposition of symbols.



Home | Main Index | Thread Index | Old Index