From 6232291caebc2dc1365cdb422ed16c09c06b3f28 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Wed, 9 Oct 2024 20:39:27 +0900 Subject: ldd: implement strict ldd output parser Fortify needs to internally resolve helper program sandbox config. They are considered trusted and runs under the privileged UID so ldd output is used to determine libraries they need inside the sandbox environment. Signed-off-by: Ophestra Umiker --- ldd/error.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ldd/error.go (limited to 'ldd/error.go') diff --git a/ldd/error.go b/ldd/error.go new file mode 100644 index 00000000..51aef948 --- /dev/null +++ b/ldd/error.go @@ -0,0 +1,11 @@ +package ldd + +import "fmt" + +type EntryUnexpectedSegmentsError struct { + Entry string +} + +func (e *EntryUnexpectedSegmentsError) Error() string { + return fmt.Sprintf("unexpected segments in entry %q", e.Entry) +} -- cgit v1.3.1