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>
This commit is contained in:
@@ -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
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user