From 7e63564c56e44c2b32d6cdcefbba31a5b3038e81 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 12 Sep 2024 22:29:22 +0100 Subject: [PATCH] feat(profile): add speech-dispatcher. --- apparmor.d/profiles-s-z/speech-dispatcher | 34 +++++++++++++++++++++++ dists/flags/main.flags | 1 + 2 files changed, 35 insertions(+) create mode 100644 apparmor.d/profiles-s-z/speech-dispatcher diff --git a/apparmor.d/profiles-s-z/speech-dispatcher b/apparmor.d/profiles-s-z/speech-dispatcher new file mode 100644 index 000000000..7a597ed5d --- /dev/null +++ b/apparmor.d/profiles-s-z/speech-dispatcher @@ -0,0 +1,34 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/speech-dispatcher +profile speech-dispatcher @{exec_path} { + include + include + include + include + + network inet stream, + network inet6 stream, + + @{exec_path} mr, + + @{sh_path} ix, + @{lib}/speech-dispatcher/** r, + @{lib}/speech-dispatcher/speech-dispatcher-modules/* ix, + + /etc/machine-id r, + /etc/speech-dispatcher/{,**} r, + + owner @{run}/user/@{uid}/speech-dispatcher/ rw, + owner @{run}/user/@{uid}/speech-dispatcher/** rwk, + + include if exists +} + +# vim:syntax=apparmor diff --git a/dists/flags/main.flags b/dists/flags/main.flags index 401681743..88cb2d176 100644 --- a/dists/flags/main.flags +++ b/dists/flags/main.flags @@ -316,6 +316,7 @@ snapd complain snapd-apparmor complain snapd-core-fixup complain snapshot complain +speech-dispatcher complain ssservice complain startplasma complain startx attach_disconnected,complain