mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
70 lines
1.6 KiB
Plaintext
70 lines
1.6 KiB
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/youtube-viewer
|
|
profile youtube-viewer @{exec_path} {
|
|
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,
|
|
|
|
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 <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,
|
|
|
|
}
|
|
|
|
include if exists <local/youtube-viewer>
|
|
}
|