diff options
| author | Ophestra <cat@gensokyo.uk> | 2024-12-26 12:48:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2024-12-26 12:48:48 +0900 |
| commit | bf8094c6cad12926e65aaa78d02ef414d3ece3da (patch) | |
| tree | e027a02ab0da911a3b29600d4a2fb432311dd892 | |
| parent | 2e3bb1893ed646426a0d38d8e9a2b9089bf632d0 (diff) | |
internal: include path to fortify main program
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rwxr-xr-x | dist/release.sh | 1 | ||||
| -rw-r--r-- | internal/path.go | 5 | ||||
| -rw-r--r-- | package.nix | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/dist/release.sh b/dist/release.sh index bc7d1571..9d2ca3f9 100755 --- a/dist/release.sh +++ b/dist/release.sh @@ -10,6 +10,7 @@ cp -rv "comp" "${out}" go build -trimpath -v -o "${out}/bin/" -ldflags "-s -w -X git.gensokyo.uk/security/fortify/internal.Version=${VERSION} + -X git.gensokyo.uk/security/fortify/internal.Fortify=/usr/bin/fortify -X git.gensokyo.uk/security/fortify/internal.Fsu=/usr/bin/fsu -X git.gensokyo.uk/security/fortify/internal.Finit=/usr/libexec/fortify/finit -X main.Fmain=/usr/bin/fortify diff --git a/internal/path.go b/internal/path.go index 51388536..b6fbff0c 100644 --- a/internal/path.go +++ b/internal/path.go @@ -3,8 +3,9 @@ package internal import "path" var ( - Fsu = compPoison - Finit = compPoison + Fortify = compPoison + Fsu = compPoison + Finit = compPoison ) func Path(p string) (string, bool) { diff --git a/package.nix b/package.nix index d131b183..afc88590 100644 --- a/package.nix +++ b/package.nix @@ -45,6 +45,7 @@ buildGoModule rec { Version = "v${version}"; Fsu = "/run/wrappers/bin/fsu"; Finit = "${placeholder "out"}/libexec/finit"; + Fortify = "${placeholder "out"}/bin/fortify"; }; # nix build environment does not allow acls |
