From f5d1386f749587d10a35f74c4fc68853710c0d76 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 16 Apr 2021 13:37:26 +0100 Subject: [PATCH] Add xdg-user-dirs-update --- apparmor.d/profiles-m-z/xdg-user-dirs-update | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 apparmor.d/profiles-m-z/xdg-user-dirs-update diff --git a/apparmor.d/profiles-m-z/xdg-user-dirs-update b/apparmor.d/profiles-m-z/xdg-user-dirs-update new file mode 100644 index 00000000..2f05f750 --- /dev/null +++ b/apparmor.d/profiles-m-z/xdg-user-dirs-update @@ -0,0 +1,22 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2021 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/xdg-user-dirs-update +profile xdg-user-dirs-update @{exec_path} { + include + + @{exec_path} mr, + + /etc/xdg/user-dirs.conf r, + /etc/xdg/user-dirs.defaults r, + /var/lib/gdm/.config/user-dirs.dirs r, + + owner @{user_config_dirs}/user-dirs.dirs r, + + include if exists +}