apparmor.d/profiles/scdaemon
2021-04-01 16:17:47 +01:00

27 lines
580 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2017-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/gnupg/scdaemon
profile scdaemon @{exec_path} {
include <abstractions/base>
include <abstractions/devices-usb>
network netlink raw,
@{exec_path} mr,
owner @{HOME}/.gnupg/scdaemon.conf r,
owner @{run}/user/[0-9]*/gnupg/S.scdaemon rw,
@{PROC}/@{pid}/task/@{tid}/comm rw,
@{sys}/devices/pci[0-9]*/**/bConfigurationValue r,
include if exists <local/scdaemon>
}