feat(profile): add some new profiles.

This commit is contained in:
Alexandre Pujol 2023-12-09 11:39:10 +00:00
parent ed1ea18a9e
commit 386402ed70
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 150 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/jitterentropy-rngd
profile jitterentropy-rngd @{exec_path} {
include <abstractions/base>
capability sys_admin,
@{exec_path} mr,
@{PROC}/sys/kernel/random/entropy_avail r,
@{PROC}/sys/kernel/random/write_wakeup_threshold r,
include if exists <local/jitterentropy-rngd>
}