Skip to content

Commit

Permalink
Merge branch 'eero/fixup-filebeat' into 'master'
Browse files Browse the repository at this point in the history
fix: [NODE-1428] Allow systemd to relabel journal files

If systemd cannot initially write the journal to var (because it is not set up at boot), it will first start it in a tempfile, then relocate that file to persistent storage when available. After the move, it needs to fixup the label for others to be able to use it properly. 

See merge request dfinity-lab/public/ic!20039
  • Loading branch information
Bownairo committed Jun 25, 2024
2 parents f9de1a9 + 0ad23ce commit dd0bae0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ allow syslogd_t syslogd_t : netlink_generic_socket { create ioctl };
# context.
require { type var_log_t; }
filetrans_pattern(syslogd_t, var_t, var_log_t, dir, "log")
allow systemd_tmpfiles_t var_log_t : file { relabelfrom };

# journald wants to scan the /run/user hierarchy (presumably relating to login sessions)
require { type user_runtime_root_t, user_runtime_t; }
Expand Down

0 comments on commit dd0bae0

Please sign in to comment.