git: rtld: Add support for LD_LIBRARY_PATH_FDS env variable

John Marino marino at crater.dragonflybsd.org
Sun Nov 30 08:51:22 PST 2014


commit 98e4cb42ffdf7b36598968a5e31d50c4a1ca73f9
Author: John Marino <draco at marino.st>
Date:   Sun Nov 30 12:52:58 2014 +0100

    rtld: Add support for LD_LIBRARY_PATH_FDS env variable
    
    This variable allows loading of shared libraries via directory descriptors
    rather than via library paths. if LD_LIBRARY_PATH_FDS=3:4:12, the
    directories represented by file descriptors 3, 4, and 12 will be searched
    for shared libraries before the normal path-based mechanisms are used.
    This allows the execution of unpriviledge binaries from within a Capsicum
    sandbox even if they require shared libraries.  Note that Capsicum is not
    available on DragonFly yet.
    
    While here, adjust whitespace and rearrange a bit to minimize differences
    with FreeBSD rtld.
    
    Taken from:	FreeBSD svn 267678 (20 June 2014)

Summary of changes:
 libexec/rtld-elf/rtld.1        |  13 +-
 libexec/rtld-elf/rtld.c        | 318 +++++++++++++++++++++++++++--------------
 libexec/rtld-elf/rtld_printf.c |  12 ++
 libexec/rtld-elf/rtld_printf.h |   2 +
 4 files changed, 232 insertions(+), 113 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/98e4cb42ffdf7b36598968a5e31d50c4a1ca73f9


-- 
DragonFly BSD source repository



More information about the Commits mailing list