# apparmor.d - Full set of apparmor profiles # Copyright (C) 2019-2021 Mikhail Morfikov # Copyright (C) 2021-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = @{bin}/youtube-viewer profile youtube-viewer @{exec_path} { include include include include include signal (receive) set=(hup, winch) peer=gtk-youtube-viewer//xterm, network inet dgram, network inet6 dgram, network inet stream, network inet6 stream, network netlink raw, @{exec_path} r, @{bin}/perl r, @{sh_path} rix, @{bin}/infocmp rix, @{bin}/stty rix, @{bin}/wget rCx -> wget, owner @{user_config_dirs}/youtube-viewer/{,*} rw, owner @{user_cache_dirs}/youtube-viewer/{,*} rw, owner @{HOME}/Downloads/youtube-viewer/{,*} rw, /etc/inputrc r, # Players @{bin}/mpv rPUx, @{bin}/vlc rPUx, @{bin}/smplayer rPUx, @{bin}/ffmpeg rPUx, profile wget { include include include include include signal (receive) set=(hup, winch) peer=gtk-youtube-viewer//xterm, @{bin}/wget mr, /etc/wgetrc r, owner @{HOME}/.wget-hsts r, owner @{HOME}/wget-log{,.@{int}} rw, } include if exists }