Skip to content

Commit

Permalink
Allow systemd-generator connect to syslog over a unix stream socket
Browse files Browse the repository at this point in the history
Sych permissions are needed when the systemd-journald socket listener
is replaced with rsyslog for performance reasons (it is faster to have
the logs sent directly to rsyslog, then to their log aggregator, rather
than having the extra step of app -> journald -> rsyslog).

Resolves: RHEL-75879
  • Loading branch information
zpytela committed Jan 27, 2025
1 parent 3120532 commit 8623966
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions policy/modules/system/systemd.te
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,10 @@ fs_getattr_nsfs_files(systemd_generator)
fs_search_cgroup_dirs(systemd_generator)
init_read_state(systemd_generator)

optional_policy(`
logging_stream_connect_syslog(systemd_generator)
')

### Rules for individual systemd generator domains

### bless-boot generator
Expand Down

0 comments on commit 8623966

Please sign in to comment.