apparmor.d/apparmor.d/tunables/xdg-user-dirs
2021-10-07 14:50:46 +01:00

57 lines
1.8 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Extended user XDG directories definition
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
# To allow extended personalisation by the user without breaking everything.
# All apparmor profiles should always use the variables defined here.
# XDG_*_DIR variables are relative pathnames from the user home directory.
# user_*_dirs variables are absolute path.
# Define the common set of XDG user directories (usually defined in
# /etc/xdg/user-dirs.defaults)
@{XDG_DESKTOP_DIR}="Desktop"
@{XDG_DOWNLOAD_DIR}="Downloads"
@{XDG_TEMPLATES_DIR}="Templates"
@{XDG_PUBLICSHARE_DIR}="Public"
@{XDG_DOCUMENTS_DIR}="Documents"
@{XDG_MUSIC_DIR}="Music"
@{XDG_PICTURES_DIR}="Pictures"
@{XDG_VIDEOS_DIR}="Videos"
# Extra user personal directories
@{XDG_PROJECTS_DIR}="Projects"
@{XDG_BOOKS_DIR}="Books"
@{XDG_WALLPAPERS_DIR}="Pictures/Wallpapers"
@{XDG_SYNC_DIR}="Sync"
@{XDG_VM_DIR}=".vm"
# User personal keyrings
@{XDG_SSH_DIR}=".ssh"
@{XDG_GPG_DIR}=".gnupg"
# Definition of local user configuration directories
@{XDG_CACHE_HOME}=".cache"
@{XDG_CONFIG_HOME}=".config"
@{XDG_DATA_HOME}=".local/share"
@{XDG_BIN_HOME}=".local/bin"
@{XDG_LIB_HOME}=".local/lib"
# Full path of the user configuration directories
@{user_cache_dirs}=@{HOME}/@{XDG_CACHE_HOME}
@{user_config_dirs}=@{HOME}/@{XDG_CONFIG_HOME}
@{user_bin_dirs}=@{HOME}/@{XDG_BIN_HOME}
@{user_lib_dirs}=@{HOME}/@{XDG_LIB_HOME}
# User build directories and output
@{user_build_dirs}="/tmp/"
@{user_pkg_dirs}="/tmp/pkg/"
@{user_tmp_dirs}=@{run}/user/@{uid} /tmp/
# Other user directories
@{user_sync_dirs}=@{HOME}/@{XDG_SYNC_DIR} @{MOUNTS}/*/@{XDG_SYNC_DIR}
# Also, include files in tunables/xdg-user-dirs.d for site-specific adjustments
# to the various XDG directories
include <tunables/xdg-user-dirs.d>