From 6bf2a7e826b37c7cc297ad180e34aa9938ab2b03 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 8 Apr 2021 22:45:44 +0100 Subject: [PATCH] Update gsd-power. --- apparmor.d/groups/gnome/gsd-power | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apparmor.d/groups/gnome/gsd-power b/apparmor.d/groups/gnome/gsd-power index 846b6234..ec6cb4b3 100644 --- a/apparmor.d/groups/gnome/gsd-power +++ b/apparmor.d/groups/gnome/gsd-power @@ -20,8 +20,16 @@ profile gsd-power @{exec_path} flags=(attach_disconnected) { /usr/share/gdm/greeter-dconf-defaults r, /usr/share/glib-2.0/schemas/gschemas.compiled r, /usr/share/icons/{,**} r, + /usr/share/sounds/freedesktop/stereo/*.oga r, /usr/share/X11/xkb/** r, + /etc/machine-id r, + /var/lib/dbus/machine-id r, + /etc/pulse/client.conf r, + + owner @{user_config_dirs}/pulse/cookie rk, + owner @{user_cache_dirs}/event-sound-cache.tdb.* rwk, + include owner @{run}/user/[0-9]*/dconf/ rw, owner @{run}/user/[0-9]*/dconf/user rw, @@ -49,9 +57,12 @@ profile gsd-power @{exec_path} flags=(attach_disconnected) { @{run}/systemd/inhibit/[0-9]*.ref rw, + @{run}/user/[0-9]*/pulse/ r, + @{PROC}/cmdline r, owner /dev/tty[0-9]* rw, + /dev/shm/ r, include if exists }