# apparmor.d - Full set of apparmor profiles # Copyright (C) 2020-2021 Mikhail Morfikov # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = /{usr/,}bin/journalctl profile systemd-journalctl @{exec_path} { include include include capability sys_resource, signal (send) peer=child-pager, @{exec_path} mr, /{usr/,}bin/pager rPx -> child-pager, /{usr/,}bin/less rPx -> child-pager, /{usr/,}bin/more rPx -> child-pager, /{run,var}/log/journal/ r, /{run,var}/log/journal/[0-9a-f]*/ r, /{run,var}/log/journal/[0-9a-f]*/user-[0-9a-f]*.journal* rw, /{run,var}/log/journal/[0-9a-f]*/system.journal* r, /{run,var}/log/journal/[0-9a-f]*/system@[0-9a-f]*.journal* rw, # For --setup-keys and --verify owner /{run,var}/log/journal/[0-9a-f]*/fss.tmp.* rw, owner /{run,var}/log/journal/[0-9a-f]*/fss wl -> /var/log/journal/[0-9a-f]*/fss.tmp.*, owner /var/tmp/#[0-9]* rw, /var/lib/systemd/catalog/database rw, /var/lib/systemd/catalog/.#database* rw, /var/lib/dbus/machine-id r, /etc/machine-id r, owner @{PROC}/@{pid}/cgroup r, include if exists }