# vim:syntax=apparmor # ------------------------------------------------------------------ # # Copyright (C) 2017-2021 Mikhail Morfikov # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # # ------------------------------------------------------------------ abi , include @{exec_path} = /{usr/,}bin/mpsyt profile mpsyt @{exec_path} { include include include include include include include signal (send) set=(term, kill) peer=mpv, network inet dgram, network inet6 dgram, network inet stream, network inet6 stream, network netlink raw, @{exec_path} r, /{usr/,}bin/python3.[0-9]* r, /{usr/,}bin/ r, /{usr/,}bin/tset rix, /{usr/,}sbin/ldconfig rix, /{usr/,}bin/uname rix, /{usr/,}bin/mpv rPUx, /{usr/,}bin/ffmpeg rPUx, /{usr/,}bin/ffprobe rPUx, # MPV config files /etc/mpv/* r, owner @{HOME}/.config/mpv/* r, # mps-yt config files owner @{HOME}/.config/mps-youtube/{,**} rw, # Cache files owner @{HOME}/.cache/youtube-dl/youtube-sigfuncs/js_*.json{,.*.tmp} rw, /etc/inputrc r, /etc/mime.types r, owner @{PROC}/@{pid}/fd/ r, owner @{PROC}/@{pid}/mounts r, /tmp/ r, owner /tmp/[a-z0-9]* rw, owner /tmp/mpsyt-input* rw, owner /tmp/mpsyt-mpv*.sock rw, include if exists }