feat(profile): add initial profile for decibels.

This commit is contained in:
Alexandre Pujol 2025-05-17 22:22:00 +02:00
parent f9f4097164
commit efba6e164e
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,37 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/decibels @{bin}/org.gnome.Decibels
profile decibels @{exec_path} {
include <abstractions/base>
include <abstractions/audio-client>
include <abstractions/common/gnome>
include <abstractions/gstreamer>
include <abstractions/user-download-strict>
@{exec_path} mr,
@{bin}/gjs-console rix,
@{open_path} rPx -> child-open-help,
/usr/share/org.gnome.Decibels/{,**} r,
owner @{user_music_dirs}/{,**} r,
owner @{user_pictures_dirs}/{,**} r,
owner @{user_torrents_dirs}/{,**} r,
owner @{user_videos_dirs}/{,**} r,
owner @{PROC}/@{pid}/mounts r,
owner @{PROC}/@{pid}/stat r,
owner @{PROC}/@{pid}/task/@{tid}/stat r,
include if exists <local/decibels>
}
# vim:syntax=apparmor

View file

@ -77,6 +77,7 @@ cupsd attach_disconnected,complain
ddcutil complain ddcutil complain
deb-systemd-helper complain deb-systemd-helper complain
deb-systemd-invoke complain deb-systemd-invoke complain
decibels complain
dino attach_disconnected,complain dino attach_disconnected,complain
discord complain discord complain
discord-chrome-sandbox complain discord-chrome-sandbox complain