# apparmor.d - Full set of apparmor profiles # Copyright (C) 2019-2021 Mikhail Morfikov # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = /{usr/,}bin/youtube-viewer profile youtube-viewer @{exec_path} { include include 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, /{usr/,}bin/perl r, /{usr/,}bin/{,ba,da}sh rix, /{usr/,}bin/infocmp rix, /{usr/,}bin/stty rix, /{usr/,}bin/wget rCx -> wget, owner @{HOME}/.config/youtube-viewer/{,*} rw, owner @{HOME}/.cache/youtube-viewer/{,*} rw, owner @{HOME}/Downloads/youtube-viewer/{,*} rw, /etc/inputrc r, # Players /{usr/,}bin/mpv rPUx, /{usr/,}bin/vlc rPUx, /{usr/,}bin/smplayer rPUx, /{usr/,}bin/ffmpeg rPUx, profile wget { include include include include include signal (receive) set=(hup, winch) peer=gtk-youtube-viewer//xterm, /{usr/,}bin/wget mr, /etc/wgetrc r, owner @{HOME}/.wget-hsts r, owner @{HOME}/wget-log{,.[0-9]*} rw, } include if exists }