mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
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>
|
||||||
|
}
|
26
apparmor.d/profiles-m-r/ouch
Normal file
26
apparmor.d/profiles-m-r/ouch
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# 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}/ouch
|
||||||
|
profile ouch @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/user-read-strict>
|
||||||
|
include <abstractions/user-write-strict>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
owner @{HOME}/.tmp@{rand6}/{,**} rw,
|
||||||
|
|
||||||
|
@{sys}/fs/cgroup/user.slice/cpu.max r,
|
||||||
|
@{sys}/fs/cgroup/user.slice/user-@{uid}.slice/cpu.max r,
|
||||||
|
@{sys}/fs/cgroup/user.slice/user-@{uid}.slice/session-@{int}.scope/cpu.max r,
|
||||||
|
|
||||||
|
owner @{PROC}/@{pid}/cgroup r,
|
||||||
|
|
||||||
|
include if exists <local/ouch>
|
||||||
|
}
|
Loading…
Reference in a new issue