chrony: drop privileges

This commit is contained in:
Daniel Barlow 2023-08-27 22:05:22 +01:00
parent 81b56fb6a3
commit 6b28f5dd79
2 changed files with 1 additions and 2 deletions

View file

@ -22,7 +22,7 @@ let
++ ++
(mapAttrsToList (name: opts: "peer ${name} ${concatStringsSep "" opts}") (mapAttrsToList (name: opts: "peer ${name} ${concatStringsSep "" opts}")
p.peers) p.peers)
++ [ "user #{p.user}" ] ++ [ "user ${p.user}" ]
++ (lib.optional (p.makestep != null) "makestep ${toString p.makestep.threshold} ${toString p.makestep.limit}") ++ (lib.optional (p.makestep != null) "makestep ${toString p.makestep.threshold} ${toString p.makestep.limit}")
++ (map (n: "allow ${n}") p.allow) ++ (map (n: "allow ${n}") p.allow)
++ (lib.optional (p.bindaddress != null) "bindaddress ${p.bindaddress}") ++ (lib.optional (p.bindaddress != null) "bindaddress ${p.bindaddress}")

View file

@ -72,7 +72,6 @@ extraPkgs // {
nspr = null; nspr = null;
readline = null; readline = null;
libedit = null; libedit = null;
libcap = null;
libseccomp = null; libseccomp = null;
# should texinfo be in nativeBuildInputs instead of # should texinfo be in nativeBuildInputs instead of
# buildInputs? # buildInputs?