add profiles for cmus and ouch (#408)
* add profiles for cmus and ouch * minor corrections
This commit is contained in:
parent
d864f5c975
commit
bd1239b46a
2 changed files with 57 additions and 0 deletions
31
apparmor.d/profiles-a-f/cmus
Normal file
31
apparmor.d/profiles-a-f/cmus
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 valoq <valoq@mailbox.org>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/cmus
|
||||
profile cmus @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/audio-client>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/usr/share/cmus/{,**} r,
|
||||
/usr/share/terminfo/{,**} r,
|
||||
|
||||
/etc/machine-id r,
|
||||
|
||||
owner @{user_music_dirs}/{,**} r,
|
||||
|
||||
owner @{user_config_dirs}/ r,
|
||||
owner @{user_config_dirs}/cmus/{,**} rw,
|
||||
|
||||
owner @{run}/user/@{uid}/cmus-socket w,
|
||||
|
||||
/dev/shm/ r,
|
||||
|
||||
include if exists <local/cmus>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue