From aa606bbdc43df94abf5f1f131b2e8ff00b34c660 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 3 Jun 2022 20:23:28 +0100 Subject: [PATCH] feat(profiles): add swtpm_ioctl. --- apparmor.d/profiles-s-z/swtpm_ioctl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 apparmor.d/profiles-s-z/swtpm_ioctl diff --git a/apparmor.d/profiles-s-z/swtpm_ioctl b/apparmor.d/profiles-s-z/swtpm_ioctl new file mode 100644 index 00000000..75660e85 --- /dev/null +++ b/apparmor.d/profiles-s-z/swtpm_ioctl @@ -0,0 +1,19 @@ +# 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_ioctl +profile swtpm_ioctl @{exec_path} { + include + + capability dac_override, + capability dac_read_search, + + @{exec_path} mr, + + include if exists +} \ No newline at end of file