apparmor.d/apparmor.d/profiles-a-f/aa-log
2023-03-25 15:48:59 +00:00

37 lines
No EOL
759 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/aa-log
profile aa-log @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
capability dac_read_search,
@{exec_path} mr,
/{usr/,}bin/journalctl rix,
/etc/machine-id r,
/var/lib/dbus/machine-id r,
/var/log/audit/* r,
/var/log/syslog* r,
/{run,var}/log/journal/ r,
/{run,var}/log/journal/@{hex}/{,*} r,
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
@{PROC}/sys/kernel/random/boot_id r,
@{PROC}/sys/kernel/cap_last_cap r,
/dev/tty[0-9]* rw,
include if exists <local/aa-log>
}