nixos/prometheus: fix startup w/hardened service

See the discussion below the original PR[1] and #197443 for more
context.

I guess I missed that upon review because the branch was too old and I
cherry-picked the commit onto my deployment branch which is based on
22.05. Sorry for that!

[1] https://github.com/NixOS/nixpkgs/pull/162784#issuecomment-1306848036
This commit is contained in:
Maximilian Bosch 2022-11-08 17:46:35 +01:00
parent 6b572437c0
commit dcb32beda0
No known key found for this signature in database
GPG Key ID: 9A6EEA275CA5BE0A

View File

@ -1822,7 +1822,7 @@ in
RestrictRealtime = true;
RestrictSUIDSGID = true;
SystemCallArchitectures = "native";
SystemCallFilter = [ "@system-service" "~@privileged" "~@resources" ];
SystemCallFilter = [ "@system-service" "~@privileged" ];
};
};
# prometheus-config-reload will activate after prometheus. However, what we