summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorChristian Kögler <ck3d@gmx.de>2022-10-01 10:09:59 +0200
committerGitHub <noreply@github.com>2022-10-01 10:09:59 +0200
commite6ffa3dfc9f6ae5683e6e4270d14306e5287223a (patch)
treecb77b5737aad5655307bab009605eedc24682a32 /nixos
parent34f83931999d0b46545ded86b060f98c75c2f663 (diff)
parent1655d5ab7a7a259f53393a369459ff533fcce9e6 (diff)
Merge pull request #191854 from farnoy/patch-1
nixos/rust-motd: fix systemd service checks
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/programs/rust-motd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/programs/rust-motd.nix b/nixos/modules/programs/rust-motd.nix
index f89b5e038387..d5f1820ba752 100644
--- a/nixos/modules/programs/rust-motd.nix
+++ b/nixos/modules/programs/rust-motd.nix
@@ -69,7 +69,7 @@ in {
ProtectKernelTunables = true;
ProtectSystem = "full";
StateDirectory = "rust-motd";
- RestrictAddressFamilies = "none";
+ RestrictAddressFamilies = [ "AF_UNIX" ];
RestrictNamespaces = true;
RestrictRealtime = true;
RestrictSUIDSGID = true;