Add profile for spotdl. (#736)
* Add profile for spotdl. * Change `rpx` to `rPx` * Remove copyright
This commit is contained in:
parent
8697a6a7e1
commit
f83e24b1b7
2 changed files with 41 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
40
apparmor.d/profiles-s-z/spotdl
Normal file
40
apparmor.d/profiles-s-z/spotdl
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue