* Replace @{HOME}/.config with @{user_config_dirs}
* Replace @{HOME}/.cache with @{user_cache_dirs}
* Replace @{HOME}/.local/state with @{user_state_dirs}
* Add missing user_share_dirs to apparmor.d/tunables/home.d/apparmor.d
* Update docs/variables.md
* Replace @{HOME}/.local/share with @{user_share_dirs}
* Replace @{HOME}/.local/lib with @{user_lib_dirs}
* Revert "Add missing user_share_dirs to apparmor.d/tunables/home.d/apparmor.d"
This reverts commit 9525003098.
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} = @{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,
|
|
@{bin}/python3.[0-9]* r,
|
|
|
|
@{bin}/ r,
|
|
@{bin}/file rix,
|
|
|
|
@{bin}/ffmpeg rPx,
|
|
@{bin}/ffprobe rPx,
|
|
|
|
/etc/magic r,
|
|
|
|
owner @{user_music_dirs}/{,**} rwk,
|
|
owner @{user_videos_dirs}/{,**} rwk,
|
|
|
|
owner @{user_cache_dirs}/ rw,
|
|
owner @{user_cache_dirs}/yt-dlp/ rw,
|
|
owner @{user_cache_dirs}/yt-dlp/** rw,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
include if exists <local/yt-dlp>
|
|
}
|