2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2021-01-10 16:35:07 +01:00
|
|
|
# Copyright (C) 2020-2021 Mikhail Morfikov
|
2020-09-12 17:19:23 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} = /{usr/,}bin/journalctl
|
|
|
|
profile systemd-journalctl @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/consoles>
|
|
|
|
include <abstractions/systemd-common>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
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,
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
owner @{PROC}/@{pid}/cgroup r,
|
|
|
|
|
|
|
|
include if exists <local/systemd-journalctl>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|