From 4aaa9379a158ad5b21068b2f93e5fbb1ef41fb44 Mon Sep 17 00:00:00 2001 From: Jose Maldonado aka Yukiteru Date: Sun, 10 Sep 2023 23:14:50 -0400 Subject: [PATCH] Update ignore and better defaults for mpv Add access to GPU ids (amdgpu) for hwaccel in mpv, and better defaults for user_config. Update gitnore and debian/control --- .gitignore | 6 ++++++ apparmor.d/profiles-m-r/mpv | 4 +++- debian/control | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 16bae84c..f2031e86 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,12 @@ debian/hardened debian/.debhelper debian/*.debhelper +# Debian build packages +debian/apparmor.d.substvars +debian/apparmor.d/ +debian/debhelper-build-stamp +debian/files + # Binaries for programs and plugins *.exe *.exe~ diff --git a/apparmor.d/profiles-m-r/mpv b/apparmor.d/profiles-m-r/mpv index ccb67507..98c657bd 100644 --- a/apparmor.d/profiles-m-r/mpv +++ b/apparmor.d/profiles-m-r/mpv @@ -41,6 +41,8 @@ profile mpv @{exec_path} { @{bin}/youtube-dl rPx, @{bin}/yt-dlp rPx, + /usr/share/libdrm/{,**} r, + /etc/mpv/* r, /etc/samba/smb.conf r, @@ -54,7 +56,7 @@ profile mpv @{exec_path} { owner @{user_videos_dirs}/{,**} rw, owner @{user_config_dirs}/mpv/ rw, - owner @{user_config_dirs}/mpv/* rw, + owner @{user_config_dirs}/mpv/{,**} rw, /tmp/ r, owner /tmp/mpsyt-input* rw, diff --git a/debian/control b/debian/control index c640be32..dd4305db 100644 --- a/debian/control +++ b/debian/control @@ -16,4 +16,4 @@ Rules-Requires-Root: no Package: apparmor.d Architecture: all Depends: apparmor-profiles -Description: Full set of AppArmor profiles (~ 1400 profiles) \ No newline at end of file +Description: Full set of AppArmor profiles (~ 1500 profiles)