From 9d30099b7f6b7f5bef6abd6dc240ada3a666112c Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Mon, 6 Feb 2017 20:47:25 +0100 Subject: [PATCH] nixos/systemd: set r-x group permissions on /var/log/journal This allows services such as systemd-journal-gateway to access the systemd journal. Closes #22288 --- nixos/modules/system/boot/systemd.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 0ed3c083f7c..56e21e82439 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -753,7 +753,8 @@ in # Keep a persistent journal. Note that systemd-tmpfiles will # set proper ownership/permissions. - mkdir -m 0700 -p /var/log/journal + # FIXME: revert to 0700 with systemd v233. + mkdir -m 0750 -p /var/log/journal ''; users.extraUsers.systemd-network.uid = config.ids.uids.systemd-network;