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

Function pledgeOrPanic

cmd/wireproxy/main.go:42–44  ·  view source on GitHub ↗

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

(promises string)

Source from the content-addressed store, hash-verified

40// attempts to pledge and panic if it fails
41// this does nothing on non-OpenBSD systems
42func pledgeOrPanic(promises string) {
43 panicIfError(protect.Pledge(promises))
44}
45
46// attempts to unveil and panic if it fails
47// this does nothing on non-OpenBSD systems

Callers 1

lockFunction · 0.85

Calls 1

panicIfErrorFunction · 0.85

Tested by

no test coverage detected