internal/app: rename init to init0
All checks were successful
Test / Create distribution (push) Successful in 25s
Test / Fortify (push) Successful in 2m27s
Test / Fpkg (push) Successful in 3m21s
Test / Data race detector (push) Successful in 3m40s
Test / Flake checks (push) Successful in 48s

This makes way for the new container init.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-03-13 21:57:54 +09:00
parent 9b1a60b5c9
commit 4133b555ba
10 changed files with 18 additions and 14 deletions

View File

@@ -15,9 +15,10 @@ import (
"git.gensokyo.uk/security/fortify/helper/bwrap"
"git.gensokyo.uk/security/fortify/helper/seccomp"
"git.gensokyo.uk/security/fortify/internal"
init0 "git.gensokyo.uk/security/fortify/internal/app/init"
"git.gensokyo.uk/security/fortify/internal/app/init0"
"git.gensokyo.uk/security/fortify/internal/app/shim"
"git.gensokyo.uk/security/fortify/internal/fmsg"
"git.gensokyo.uk/security/fortify/internal/sandbox"
"git.gensokyo.uk/security/fortify/internal/sys"
)
@@ -37,7 +38,8 @@ func init() {
}
func main() {
// early init argv0 check, skips root check and duplicate PR_SET_DUMPABLE
// early init path, skips root check and duplicate PR_SET_DUMPABLE
sandbox.TryArgv0()
init0.TryArgv0()
if err := internal.SetDumpable(internal.SUID_DUMP_DISABLE); err != nil {