mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
d701e39939
Co-authored-by: Mikhail Morfikov <mmorfikov@gmail.com> Signed-off-by: Alexandre Pujol <alexandre@pujol.io>
69 lines
1.5 KiB
Plaintext
69 lines
1.5 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>
|
|
|
|
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 @{user_config_dirs}/youtube-viewer/{,*} rw,
|
|
owner @{user_cache_dirs}/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>
|
|
}
|