diff --git a/apparmor.d/groups/freedesktop/at-spi-bus-launcher b/apparmor.d/groups/freedesktop/at-spi-bus similarity index 69% rename from apparmor.d/groups/freedesktop/at-spi-bus-launcher rename to apparmor.d/groups/freedesktop/at-spi-bus index 8ced1788..f1ac1d8e 100644 --- a/apparmor.d/groups/freedesktop/at-spi-bus-launcher +++ b/apparmor.d/groups/freedesktop/at-spi-bus @@ -8,13 +8,12 @@ abi , include @{exec_path} = @{lib}/{,at-spi2{,-core}/}at-spi-bus-launcher -profile at-spi-bus-launcher @{exec_path} flags=(attach_disconnected) { +profile at-spi-bus @{exec_path} flags=(attach_disconnected) { include - include - include + include + include include include - include network inet stream, # TODO: local only network inet6 stream, @@ -23,15 +22,16 @@ profile at-spi-bus-launcher @{exec_path} flags=(attach_disconnected) { network netlink raw, signal (receive) set=(term hup kill) peer=dbus-daemon, - signal (receive) set=(term hup kill) peer=gdm*, - signal (receive) set=(term hup kill) peer=gnome-session-binary, + + dbus bus=accessibility, + dbus bus=session, @{exec_path} mr, - @{bin}/dbus-broker-launch rix, - @{bin}/dbus-daemon rix, - @{bin}/dbus-broker rix, - @{lib}/at-spi2-registryd rPx, + @{bin}/dbus-broker-launch rix, + @{bin}/dbus-daemon rix, + @{bin}/dbus-broker rix, + @{lib}/{,at-spi2{,-core}/}at-spi2-registryd rix, /usr/share/dbus-1/accessibility-services/ r, /usr/share/dbus-1/accessibility-services/org.a11y.atspi.Registry.service r, @@ -45,10 +45,7 @@ profile at-spi-bus-launcher @{exec_path} flags=(attach_disconnected) { /var/lib/lightdm/.Xauthority r, /var/log/lightdm/seat@{int}-greeter.log w, - @{run}/systemd/users/@{uid} r, - owner @{run}/user/@{uid}/at-spi/ rw, - owner @{run}/user/@{uid}/at-spi/bus rw, - owner @{run}/user/@{uid}/at-spi/bus_@{int} rw, + @{run}/systemd/users/@{uid} r, @{sys}/kernel/security/apparmor/.access rw, @{sys}/kernel/security/apparmor/features/dbus/mask r, @@ -64,5 +61,5 @@ profile at-spi-bus-launcher @{exec_path} flags=(attach_disconnected) { owner /dev/tty@{int} rw, - include if exists + include if exists }