summaryrefslogtreecommitdiffstats
path: root/sbin/ldconfig/ldconfig.8
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2000-07-26 04:47:17 +0000
committerjdp <jdp@FreeBSD.org>2000-07-26 04:47:17 +0000
commit57948511f591473b1f3a3ea05ea7aaf1c318f0b6 (patch)
tree6a9da9a628affc175137ef4f967f76d0e5f9f128 /sbin/ldconfig/ldconfig.8
parente18207aa844e85abf726c989be698fca17680bef (diff)
downloadFreeBSD-src-57948511f591473b1f3a3ea05ea7aaf1c318f0b6.zip
FreeBSD-src-57948511f591473b1f3a3ea05ea7aaf1c318f0b6.tar.gz
If a directory is world-writable or is not owned by root, skip it
and emit a warning. This is a security measure since ldconfig influences the shared libraries used by all programs. I think the check should be made even more stringent by also ignoring group-writable directories. I will make that change soon unless we encounter a good reason not to do it. Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
Diffstat (limited to 'sbin/ldconfig/ldconfig.8')
-rw-r--r--sbin/ldconfig/ldconfig.88
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ldconfig/ldconfig.8 b/sbin/ldconfig/ldconfig.8
index 8f4f801..f008d90 100644
--- a/sbin/ldconfig/ldconfig.8
+++ b/sbin/ldconfig/ldconfig.8
@@ -61,7 +61,10 @@ line. Blank lines and lines starting with the comment character
.Ql \&#
are ignored.
.Pp
-The shared libraries so found will be automatically available for loading
+For security reasons, directories which are world-writable or which
+are not owned by root produce warning messages and are skipped.
+.Pp
+The shared libraries which are found will be automatically available for loading
if needed by the program being prepared for execution.
This obviates the need
for storing search paths within the executable.
@@ -137,9 +140,6 @@ In
addition to building a set of hints for quick lookup, it also serves to
specify the trusted collection of directories from which shared objects can
be safely loaded.
-It is presumed that the set of directories specified to
-.Nm ldconfig
-are under control of the system's administrator.
.Sh ENVIRONMENT
.Bl -tag -width OBJFORMATxxx -compact
.It Ev OBJFORMAT
OpenPOWER on IntegriCloud