From 682c98b3207258ce21126bd5bf946cc6181ce584 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 15 Oct 2024 16:24:03 +0100 Subject: [PATCH] feat(profile): minor update to xdg desktop profiles. --- apparmor.d/abstractions/app/bus | 1 + apparmor.d/groups/freedesktop/xdg-desktop-portal | 5 ++++- apparmor.d/groups/freedesktop/xdg-open | 1 - apparmor.d/groups/freedesktop/xdg-settings | 1 - 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apparmor.d/abstractions/app/bus b/apparmor.d/abstractions/app/bus index 2ead91cc..4fa0c2c8 100644 --- a/apparmor.d/abstractions/app/bus +++ b/apparmor.d/abstractions/app/bus @@ -6,6 +6,7 @@ abi , + include include @{bin}/dbus-launch mix, diff --git a/apparmor.d/groups/freedesktop/xdg-desktop-portal b/apparmor.d/groups/freedesktop/xdg-desktop-portal index eb450ee4..53218d82 100644 --- a/apparmor.d/groups/freedesktop/xdg-desktop-portal +++ b/apparmor.d/groups/freedesktop/xdg-desktop-portal @@ -71,7 +71,10 @@ profile xdg-desktop-portal @{exec_path} flags=(attach_disconnected) { /etc/sysconfig/proxy r, - @{GDM_HOME}/greeter-dconf-defaults r, + @{GDM_HOME}/greeter-dconf-defaults r, + owner @{gdm_config_dirs}/dconf/user r, + owner @{gdm_config_dirs}/user-dirs.dirs r, + @{user_config_dirs}/kioslaverc r, owner @{user_config_dirs}/xdg-desktop-portal/* r, diff --git a/apparmor.d/groups/freedesktop/xdg-open b/apparmor.d/groups/freedesktop/xdg-open index 946b9aa5..7893800d 100644 --- a/apparmor.d/groups/freedesktop/xdg-open +++ b/apparmor.d/groups/freedesktop/xdg-open @@ -43,7 +43,6 @@ profile xdg-open @{exec_path} flags=(attach_disconnected) { include include include - include include if exists } diff --git a/apparmor.d/groups/freedesktop/xdg-settings b/apparmor.d/groups/freedesktop/xdg-settings index 20246f65..870d4cfe 100644 --- a/apparmor.d/groups/freedesktop/xdg-settings +++ b/apparmor.d/groups/freedesktop/xdg-settings @@ -57,7 +57,6 @@ profile xdg-settings @{exec_path} { include include include - include include if exists }