cmd/fuserdb: systemd userdb drop-in entries generator
All checks were successful
test / test (push) Successful in 20s

This provides user records via nss-systemd. Static drop-in entries are generated to reduce complexity and attack surface.

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-11-17 02:03:18 +09:00
parent df33123bd7
commit 6a6d30af1f
2 changed files with 99 additions and 3 deletions

View File

@@ -31,12 +31,12 @@ buildGoModule rec {
"-X"
"main.Fmain=${placeholder "out"}/bin/.fortify-wrapped"
"-X"
"main.Fshim=${placeholder "out"}/bin/fshim"
"main.Fshim=${placeholder "out"}/libexec/fshim"
]
{
Version = "v${version}";
Fsu = "/run/wrappers/bin/fsu";
Finit = "${placeholder "out"}/bin/finit";
Finit = "${placeholder "out"}/libexec/finit";
};
buildInputs = [
@@ -54,6 +54,7 @@ buildGoModule rec {
]
}
mv $out/bin/fsu $out/bin/.fsu
mkdir $out/libexec
(cd $out/bin && mv fsu fshim finit fuserdb ../libexec/)
'';
}