aboutsummaryrefslogtreecommitdiffhomepage
path: root/ldd/ldd.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-14 17:49:01 +0900
committerOphestra <cat@gensokyo.uk>2025-11-14 17:49:01 +0900
commitb7406cc4c45765f9a0caad472a858f06cd6bd024 (patch)
treed7f3010a8afd925756b2a335031ed97bd4be9072 /ldd/ldd.go
parent690a0ed0d68e270e60bfe9c7cd575c4e986de83d (diff)
ldd: update package doc comment
This should hopefully deter misuse of this package. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'ldd/ldd.go')
-rw-r--r--ldd/ldd.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/ldd/ldd.go b/ldd/ldd.go
index 307d8484..9611c7b4 100644
--- a/ldd/ldd.go
+++ b/ldd/ldd.go
@@ -1,4 +1,9 @@
-// Package ldd retrieves linker information by invoking ldd from glibc or musl and parsing its output.
+// Package ldd provides a robust parser for ldd(1) output, and a convenience function
+// for running ldd(1) in a strict sandbox.
+//
+// Note: despite the additional hardening, great care must be taken when using ldd(1).
+// As a general rule, you must never run ldd(1) against a file that you do not wish to
+// execute within the same context.
package ldd
import (