apparmor.d/profiles/youtube-viewer

77 lines
1.8 KiB
Text
Raw Normal View History

# vim:syntax=apparmor
# ------------------------------------------------------------------
#
2021-01-10 16:35:07 +01:00
# Copyright (C) 2019-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.
#
# ------------------------------------------------------------------
2020-12-10 22:33:39 +01:00
abi <abi/3.0>,
2020-12-10 22:33:39 +01:00
include <tunables/global>
@{exec_path} = /{usr/,}bin/youtube-viewer
profile youtube-viewer @{exec_path} {
2020-12-10 22:33:39 +01:00
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/perl>
include <abstractions/openssl>
include <abstractions/ssl_certs>
include <abstractions/deny-root-dir-access>
signal (receive) set=(hup, winch) peer=gtk-youtube-viewer//xterm,
2020-12-10 22:33:39 +01:00
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink raw,
@{exec_path} r,
/{usr/,}bin/perl r,
2020-12-09 10:30:52 +01:00
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/infocmp rix,
/{usr/,}bin/stty rix,
2020-12-09 10:30:52 +01:00
/{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 {
2020-12-10 22:33:39 +01:00
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/user-download-strict>
include <abstractions/ssl_certs>
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,
}
2020-12-10 22:33:39 +01:00
include if exists <local/youtube-viewer>
}