# apparmor.d - Full set of apparmor profiles # Copyright (C) 2022 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = /{usr/,}bin/swtpm_setup profile swtpm_setup @{exec_path} { include include @{exec_path} mr, /{usr/,}bin/swtpm rPx, /{usr/,}bin/swtpm_localca rPx, /etc/swtpm_setup.conf r, /var/log/swtpm/{,**} w, /var/lib/libvirt/swtpm/@{uuid}/tpm2/ r, owner /tmp/swtpm_setup.certs.*/ w, owner /tmp/swtpm_setup.certs.*/*.cert rw, owner /tmp/.swtpm_setup.pidfile* rw, @{run}/systemd/userdb/ r, include if exists }