diff --git a/apparmor.d/profiles-a-f/alsactl b/apparmor.d/profiles-a-f/alsactl new file mode 100644 index 00000000..c0f821a1 --- /dev/null +++ b/apparmor.d/profiles-a-f/alsactl @@ -0,0 +1,26 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/alsactl +profile alsactl @{exec_path} { + include + include + include + include + + @{exec_path} mr, + + /var/lib/alsa/asound.state rw, + /var/lib/alsa/asound.state{,.*} rw, + + @{run}/lock/asound.state.lock rwk, + @{run}/lock/card@{int}.lock rwk, + owner @{run}/alsa/{,**} rw, + + include if exists +} \ No newline at end of file