apparmor.d/apparmor.d/profiles-m-r/rngd
2021-09-15 16:55:27 +01:00

36 lines
743 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/rngd
profile rngd @{exec_path} {
include <abstractions/base>
include <abstractions/devices-usb>
include <abstractions/nameservice-strict>
@{exec_path} mr,
capability sys_admin,
capability sys_nice,
capability dac_read_search,
network netlink raw,
/etc/opensc.conf r,
/etc/conf.d/rngd r,
/etc/machine-id r,
/var/lib/dbus/machine-id r,
@{PROC}/sys/kernel/random/poolsize r,
@{PROC}/sys/kernel/random/write_wakeup_threshold rw,
/dev/hwrng r,
/dev/random w,
include if exists <local/rngd>
}