MCPcopy
hub / github.com/windtf/wireproxy / unveilOrPanic

Function unveilOrPanic

cmd/wireproxy/main.go:48–50  ·  view source on GitHub ↗

attempts to unveil and panic if it fails this does nothing on non-OpenBSD systems

(path string, flags string)

Source from the content-addressed store, hash-verified

46// attempts to unveil and panic if it fails
47// this does nothing on non-OpenBSD systems
48func unveilOrPanic(path string, flags string) {
49 panicIfError(protect.Unveil(path, flags))
50}
51
52// get the executable path via syscalls or infer it from argv
53func executablePath() string {

Callers 1

lockFunction · 0.85

Calls 1

panicIfErrorFunction · 0.85

Tested by

no test coverage detected