diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-27 23:45:52 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-28 00:02:34 +0900 |
| commit | d9cb2a9f2b2b80344f5f72c8e5e370575119a8c1 (patch) | |
| tree | c25a2862d7e665a17633f35452c8a875a2d8e320 /package.nix | |
| parent | 09feda3783926d3eccd0061a556cdce2e5162024 (diff) | |
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 <cat@ophivana.moe>
Diffstat (limited to 'package.nix')
| -rw-r--r-- | package.nix | 4 |
1 files changed, 4 insertions, 0 deletions
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 ''; } |
