# apparmor.d - Full set of apparmor profiles # Copyright (C) 2021 Mikhail Morfikov # Copyright (C) 2023-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = @{bin}/yt-dlp profile yt-dlp @{exec_path} { include include include include include include include network inet dgram, network inet6 dgram, network inet stream, network inet6 stream, network netlink raw, @{exec_path} r, @{python_path} r, @{bin}/ r, @{bin}/file rix, @{bin}/uname rix, @{bin}/ffmpeg rPx, @{bin}/ffprobe rPx, /etc/magic r, owner @{user_music_dirs}/{,**} rwk, owner @{user_videos_dirs}/{,**} rwk, owner @{user_cache_dirs}/yt-dlp/{,**} rw, owner @{user_config_dirs}/yt-dlp/{,**} rw, owner @{PROC}/@{pid}/fd/ r, include if exists } # vim:syntax=apparmor