mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
467c38724a
apparmor.d equivalent of https://gitlab.com/apparmor/apparmor/-/merge_requests/1179
31 lines
716 B
Plaintext
31 lines
716 B
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/swtpm
|
|
profile swtpm @{exec_path} {
|
|
include <abstractions/base>
|
|
|
|
signal (receive) set=(term) peer=libvirtd,
|
|
|
|
@{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,
|
|
/tmp/@{int}/.lock rwk,
|
|
/tmp/@{int}/TMP* rw,
|
|
/tmp/@{int}/vtpm.sock rw,
|
|
|
|
@{run}/libvirt/qemu/swtpm/*.sock w,
|
|
@{run}/libvirt/qemu/swtpm/*.pid w,
|
|
|
|
include if exists <local/swtpm>
|
|
} |