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>
This commit is contained in:
11
ldd/error.go
Normal file
11
ldd/error.go
Normal file
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user