Skip to content

Commit

Permalink
nixos/systemd: set r-x group permissions on /var/log/journal
Browse files Browse the repository at this point in the history
This allows services such as systemd-journal-gateway to access the
systemd journal.

Closes #22288
  • Loading branch information
nlewo authored and abbradar committed Feb 8, 2017
1 parent d246522 commit 9d30099
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/modules/system/boot/systemd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9d30099

Please sign in to comment.