From d993caae987c44c422c7e8ec9b0531d6f948e10d Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 4 Mar 2022 21:31:07 +0000 Subject: [PATCH] Add user-write completion file. --- apparmor.d/abstractions/user-write.d/complete | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apparmor.d/abstractions/user-write.d/complete diff --git a/apparmor.d/abstractions/user-write.d/complete b/apparmor.d/abstractions/user-write.d/complete new file mode 100644 index 00000000..0ffe6622 --- /dev/null +++ b/apparmor.d/abstractions/user-write.d/complete @@ -0,0 +1,18 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2021 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + + owner @{HOME}/@{XDG_MUSIC_DIR}/{,**} rwl, + owner @{HOME}/@{XDG_PICTURES_DIR}/{,**} rwl, + owner @{HOME}/@{XDG_VIDEOS_DIR}/{,**} rwl, + owner @{HOME}/@{XDG_PROJECTS_DIR}/{,**} rwl, + owner @{HOME}/@{XDG_BOOKS_DIR}/{,**} rwl, + owner @{HOME}/@{XDG_WALLPAPERS_DIR}/{,**} rwl, + + owner @{MOUNTS}/*/@{XDG_DOCUMENTS_DIR}/{,**} rwl, + owner @{MOUNTS}/*/@{XDG_MUSIC_DIR}/{,**} rwl, + owner @{MOUNTS}/*/@{XDG_PICTURES_DIR}/{,**} rwl, + owner @{MOUNTS}/*/@{XDG_VIDEOS_DIR}/{,**} rwl, + owner @{MOUNTS}/*/@{XDG_PROJECTS_DIR}/{,**} rwl, + owner @{MOUNTS}/*/@{XDG_BOOKS_DIR}/{,**} rwl, + owner @{MOUNTS}/*/@{XDG_WALLPAPERS_DIR}/{,**} rwl,