diff --git a/meson.build b/meson.build index 1143181131..b50466dcfd 100644 --- a/meson.build +++ b/meson.build @@ -895,7 +895,6 @@ foreach option : ['adm-gid', 'video-gid', 'wheel-gid', 'systemd-journal-gid', - 'systemd-journal-uid', 'systemd-network-uid', 'systemd-resolve-uid', 'systemd-timesync-uid'] diff --git a/meson_options.txt b/meson_options.txt index 16d7f69611..c1af7ce237 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -328,8 +328,6 @@ option('wheel-gid', type : 'integer', value : 0, description : 'soft-static allocation for the "wheel" group') option('systemd-journal-gid', type : 'integer', value : 0, description : 'soft-static allocation for the systemd-journal group') -option('systemd-journal-uid', type : 'integer', value : 0, - description : 'soft-static allocation for the systemd-journal user') option('systemd-network-uid', type : 'integer', value : 0, description : 'soft-static allocation for the systemd-network user') option('systemd-resolve-uid', type : 'integer', value : 0, diff --git a/sysusers.d/systemd-journal.conf.in b/sysusers.d/systemd-journal.conf.in index bb1277f2bb..61768b234e 100644 --- a/sysusers.d/systemd-journal.conf.in +++ b/sysusers.d/systemd-journal.conf.in @@ -5,5 +5,4 @@ # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. -g systemd-journal {{SYSTEMD_JOURNAL_GID}} - -u! systemd-journal {{SYSTEMD_JOURNAL_UID}} "systemd Journal" +g systemd-journal {{SYSTEMD_JOURNAL_GID}} - diff --git a/units/systemd-journalctl@.service b/units/systemd-journalctl@.service index 2a1701efca..a816284cec 100644 --- a/units/systemd-journalctl@.service +++ b/units/systemd-journalctl@.service @@ -17,4 +17,6 @@ RequiresMountsFor=/var/log/journal [Service] ExecStart=journalctl -User=systemd-journal +DynamicUser=yes +User=systemd-journal-access +SupplementaryGroups=systemd-journal