apparmor.d/apparmor.d/profiles-s-z/swtpm
2022-11-11 22:18:55 +00:00

27 lines
No EOL
627 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/swtpm
profile swtpm @{exec_path} {
include <abstractions/base>
include <abstractions/openssl>
@{exec_path} mr,
/var/lib/libvirt/swtpm/@{uuid}/tpm2/.lock wk,
/var/lib/libvirt/swtpm/@{uuid}/tpm2/*.permall rw,
/var/log/swtpm/libvirt/qemu/*-swtpm.log w,
/tmp/.swtpm_setup.pidfile.* rw,
@{run}/libvirt/qemu/swtpm/*.sock w,
@{run}/libvirt/qemu/swtpm/*.pid w,
include if exists <local/swtpm>
}