diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-01-18 11:59:33 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-01-18 11:59:33 +0900 |
| commit | 7baca66a56f67fa5722b689cbff747eac12b857e (patch) | |
| tree | a2e6bf668d2a5ea52b5e113c08d65141dbcd5101 /cmd/fpkg/proc.go | |
| parent | 27d2914286495bf83b163172d5084a91222e7ed7 (diff) | |
proc: remove duplicate compile-time fortify reference
This is no longer needed since shim and init are now part of the main program.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/fpkg/proc.go')
| -rw-r--r-- | cmd/fpkg/proc.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/fpkg/proc.go b/cmd/fpkg/proc.go index a995c9f1..7fa6df5a 100644 --- a/cmd/fpkg/proc.go +++ b/cmd/fpkg/proc.go @@ -12,12 +12,18 @@ import ( "git.gensokyo.uk/security/fortify/internal/fmsg" ) +const compPoison = "INVALIDINVALIDINVALIDINVALIDINVALID" + +var ( + Fmain = compPoison +) + func fortifyApp(config *fst.Config, beforeFail func()) { var ( cmd *exec.Cmd st io.WriteCloser ) - if p, ok := internal.Check(internal.Fortify); !ok { + if p, ok := internal.Path(Fmain); !ok { beforeFail() fmsg.Fatal("invalid fortify path, this copy of fpkg is not compiled correctly") panic("unreachable") |
