|
NAMEldconfig —
configure the dynamic linker search path for shared
libraries
SYNOPSIS
DESCRIPTIONldconfig utility is used to configure the set of paths
used by the dynamic linker
ld-elf.so.1(1)
when searching for shared libraries. The dynamic linker looks for libraries in
a set of built-in system directories and any directories specified in the
hints file. This obviates the need for storing search paths within the
executable, see the -rpath option for the static
linker ld(1).
The hints file is maintained by Alternatively to the directories list on the
command line, files may be specified; these are
expected to contain directories to scan for shared libraries. Each
directory's pathname must start on a new line. Blank lines and lines
starting with the comment character
‘ For security reasons, directories which are world or
group-writable or which are not owned by root produce warning messages and
are skipped, unless the The The following options are recognized by
SECURITYSpecial care must be taken when loading shared libraries into the address space ofset-user-Id programs. Whenever such a program is
run by any user except the owner of the program, the dynamic linker will only
load shared libraries from paths found in the hints file. In particular, the
LD_LIBRARY_PATH is not used to search for libraries.
Thus, ldconfig serves to specify the trusted
collection of directories from which shared objects can be safely loaded.
FILES
SEE ALSOld(1), ld-elf.so.1, link(5)HISTORYAldconfig utility first appeared in SunOS 4.0, it
appeared in its current form in FreeBSD 1.1.
The name 'hints file' is historic from the times when the file also contained hints to the dynamic linker. This functionality is not provided for ELF.
Visit the GSP FreeBSD Man Page Interface. |