47 lines
1 KiB
Text
47 lines
1 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Mikhail Morfikov
|
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/yt-dlp
|
|
profile yt-dlp @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/openssl>
|
|
include <abstractions/python>
|
|
include <abstractions/ssl_certs>
|
|
include <abstractions/user-download-strict>
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
|
|
@{exec_path} r,
|
|
/{usr/,}bin/python3.[0-9]* r,
|
|
|
|
/{usr/,}bin/ r,
|
|
/{usr/,}bin/file rix,
|
|
|
|
/{usr/,}bin/ffmpeg rPx,
|
|
/{usr/,}bin/ffprobe rPx,
|
|
|
|
/etc/magic r,
|
|
|
|
owner @{user_music_dirs}/{,**} rw,
|
|
owner @{user_videos_dirs}/{,**} rw,
|
|
|
|
owner @{HOME}/.cache/ rw,
|
|
owner @{HOME}/.cache/yt-dlp/ rw,
|
|
owner @{HOME}/.cache/yt-dlp/** rw,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
include if exists <local/yt-dlp>
|
|
}
|