mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
feat(profile): add alsactl.
This commit is contained in:
parent
50b720a8b9
commit
c359c0a2fd
1 changed files with 26 additions and 0 deletions
26
apparmor.d/profiles-a-f/alsactl
Normal file
26
apparmor.d/profiles-a-f/alsactl
Normal file
|
@ -0,0 +1,26 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/alsactl
|
||||
profile alsactl @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/audio-client>
|
||||
include <abstractions/audio-server>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{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 <local/alsactl>
|
||||
}
|
Loading…
Reference in a new issue