All checks were successful
Test / Create distribution (push) Successful in 31s
Test / Sandbox (push) Successful in 1m50s
Test / Hakurei (push) Successful in 3m2s
Test / Sandbox (race detector) (push) Successful in 3m18s
Test / Planterette (push) Successful in 3m36s
Test / Hakurei (race detector) (push) Successful in 4m35s
Test / Flake checks (push) Successful in 1m7s
Having it at the project root never made sense since the "ego" name was deprecated. This change finally addresses it. Signed-off-by: Ophestra <cat@gensokyo.uk>
18 lines
375 B
Go
18 lines
375 B
Go
package instance
|
|
|
|
import (
|
|
"syscall"
|
|
|
|
"git.gensokyo.uk/security/hakurei/cmd/hakurei/internal/app"
|
|
"git.gensokyo.uk/security/hakurei/cmd/hakurei/internal/app/internal/setuid"
|
|
)
|
|
|
|
func PrintRunStateErr(whence int, rs *app.RunState, runErr error) (code int) {
|
|
switch whence {
|
|
case ISetuid:
|
|
return setuid.PrintRunStateErr(rs, runErr)
|
|
default:
|
|
panic(syscall.EINVAL)
|
|
}
|
|
}
|