From d9cb2a9f2b2b80344f5f72c8e5e370575119a8c1 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Sun, 27 Oct 2024 23:45:52 +0900 Subject: fsu: implement simple setuid user switcher Contains path to fortify, set at compile time, authenticates based on a simple uid range assignment file which also acts as the allow list. Signed-off-by: Ophestra Umiker --- package.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package.nix') diff --git a/package.nix b/package.nix index 93df07b6..4293f47b 100644 --- a/package.nix +++ b/package.nix @@ -20,6 +20,8 @@ buildGoModule rec { "-w" "-X" "main.Version=v${version}" + "-X" + "main.FortifyPath=${placeholder "out"}/bin/fortify" ]; buildInputs = [ @@ -36,5 +38,7 @@ buildGoModule rec { xdg-dbus-proxy ] } + + mv $out/bin/fsu $out/bin/.fsu ''; } -- cgit v1.3.1