forked from security/hakurei
app: rename app implementation package
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -5,20 +5,20 @@ import (
|
||||
"os"
|
||||
|
||||
"git.gensokyo.uk/security/fortify/fst"
|
||||
"git.gensokyo.uk/security/fortify/internal/app"
|
||||
"git.gensokyo.uk/security/fortify/internal/app/setuid"
|
||||
"git.gensokyo.uk/security/fortify/internal/fmsg"
|
||||
)
|
||||
|
||||
func mustRunApp(ctx context.Context, config *fst.Config, beforeFail func()) {
|
||||
rs := new(fst.RunState)
|
||||
a := app.MustNew(ctx, std)
|
||||
a := setuid.MustNew(ctx, std)
|
||||
|
||||
var code int
|
||||
if sa, err := a.Seal(config); err != nil {
|
||||
fmsg.PrintBaseError(err, "cannot seal app:")
|
||||
code = 1
|
||||
} else {
|
||||
code = app.PrintRunStateErr(rs, sa.Run(rs))
|
||||
code = setuid.PrintRunStateErr(rs, sa.Run(rs))
|
||||
}
|
||||
|
||||
if code != 0 {
|
||||
|
||||
Reference in New Issue
Block a user