From 7baca66a56f67fa5722b689cbff747eac12b857e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 18 Jan 2025 11:59:33 +0900 Subject: 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 --- cmd/fpkg/proc.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cmd/fpkg/proc.go') 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") -- cgit v1.3.1