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,