mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-16 08:23:47 +01:00
32 lines
888 B
Plaintext
32 lines
888 B
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2009-2012 Steve Kostecke <steve@debian.org>;
|
|
# Copyright (C) 2011-2014 Jérémy Bobbio <lunar@debian.org>;
|
|
# Copyright (C) 2020 krathalan https://git.sr.ht/~krathalan/apparmor-profiles/
|
|
# Copyright (C) 2021-2023 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/haveged
|
|
profile haveged @{exec_path} {
|
|
include <abstractions/base>
|
|
|
|
capability sys_admin,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{sys}/devices/system/cpu/cpu@{int}/cache/ r,
|
|
@{sys}/devices/system/cpu/cpu@{int}/cache/index*/{type,size,level} r,
|
|
|
|
@{PROC}/sys/kernel/osrelease r,
|
|
@{PROC}/sys/kernel/random/poolsize r,
|
|
@{PROC}/sys/kernel/random/write_wakeup_threshold w,
|
|
owner @{PROC}/@{pid}/status r,
|
|
|
|
/dev/random w,
|
|
|
|
include if exists <local/haveged>
|
|
}
|