diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-06-25 20:44:49 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-06-25 20:50:24 +0900 |
| commit | aa454b158f3713b2ee47162837dcea1efdce0ee6 (patch) | |
| tree | 71c9ebf64bf518311fccef1b9c0fc25d59778c26 /cmd/fpkg/proc.go | |
| parent | 7007bd6a1c022dee1951413b820a54f5b4271bbb (diff) | |
cmd/planterette: remove hsu special case
Remove special case and invoke hakurei out of process.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/fpkg/proc.go')
| -rw-r--r-- | cmd/fpkg/proc.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/cmd/fpkg/proc.go b/cmd/fpkg/proc.go deleted file mode 100644 index 7862e476..00000000 --- a/cmd/fpkg/proc.go +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "context" - "os" - - "git.gensokyo.uk/security/hakurei/hst" - "git.gensokyo.uk/security/hakurei/internal/app" - "git.gensokyo.uk/security/hakurei/internal/app/instance" - "git.gensokyo.uk/security/hakurei/internal/hlog" -) - -func mustRunApp(ctx context.Context, config *hst.Config, beforeFail func()) { - rs := new(app.RunState) - a := instance.MustNew(instance.ISetuid, ctx, std) - - var code int - if sa, err := a.Seal(config); err != nil { - hlog.PrintBaseError(err, "cannot seal app:") - code = 1 - } else { - code = instance.PrintRunStateErr(instance.ISetuid, rs, sa.Run(rs)) - } - - if code != 0 { - beforeFail() - os.Exit(code) - } -} |
