diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-09 20:39:27 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-09 20:39:27 +0900 |
| commit | 6232291caebc2dc1365cdb422ed16c09c06b3f28 (patch) | |
| tree | 80dbff46d90453ca9082963c66043d95c23eb9b8 /ldd/error.go | |
| parent | b99ed943865cd3e8b3ab0cbcb8e04720b158799c (diff) | |
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 <cat@ophivana.moe>
Diffstat (limited to 'ldd/error.go')
| -rw-r--r-- | ldd/error.go | 11 |
1 files changed, 11 insertions, 0 deletions
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) +} |
