Add profile for spotdl. (#736)

* Add profile for spotdl.

* Change `rpx` to `rPx`

* Remove copyright
This commit is contained in:
tpaau-17DB 2025-05-14 20:17:06 +00:00 committed by GitHub
parent 8697a6a7e1
commit f83e24b1b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 41 additions and 0 deletions

View file

@ -28,6 +28,7 @@ profile ffmpeg @{exec_path} {
/var/lib/dbus/machine-id r,
owner @{HOME}/.Xauthority r,
owner @{HOME}/.spotdl/** rw, # For spotdl
owner @{user_music_dirs}/** rw,
owner @{user_videos_dirs}/** rw,

View file

@ -0,0 +1,40 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 tpaau-17DB <tpaau-17db@tutamail.com>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/spotdl
profile spotdl @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/python>
include <abstractions/ssl_certs>
include <abstractions/user-download-strict>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
@{exec_path} mr,
@{python_path} r,
@{bin}/ffmpeg rPx,
@{bin}/ffprobe rPx,
owner @{user_music_dirs}/{,**} rwk,
owner @{HOME}/.spotdl/** rw,
owner @{user_cache_dirs}/spotdl/{,**} rw,
owner @{user_config_dirs}/spotdl/{,**} rw,
owner @{PROC}/@{pid}/fd/ r,
include if exists <local/spotdl>
}
# vim:syntax=apparmor