mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 23:05:11 +01:00
37 lines
762 B
Text
37 lines
762 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/aa-log
|
|
profile aa-log @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
capability dac_read_search,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{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/@{hex32}/{,*} r,
|
|
|
|
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
|
|
|
@{PROC}/sys/kernel/cap_last_cap r,
|
|
|
|
/dev/tty@{int} rw,
|
|
|
|
include if exists <local/aa-log>
|
|
}
|