mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
Fix support for Qt5 and Qt5 in apps groups
This changes fix access to qt5ct and qt6ct for: *Calibre *Flameshot *Telegram
This commit is contained in:
parent
004572349d
commit
d26b86c5d7
@ -30,6 +30,7 @@ profile calibre @{exec_path} {
|
|||||||
include <abstractions/nvidia>
|
include <abstractions/nvidia>
|
||||||
include <abstractions/opencl-intel>
|
include <abstractions/opencl-intel>
|
||||||
include <abstractions/python>
|
include <abstractions/python>
|
||||||
|
include <abstractions/qt5>
|
||||||
include <abstractions/qt5-compose-cache-write>
|
include <abstractions/qt5-compose-cache-write>
|
||||||
include <abstractions/qt5-settings-write>
|
include <abstractions/qt5-settings-write>
|
||||||
include <abstractions/qt5-shader-cache>
|
include <abstractions/qt5-shader-cache>
|
||||||
@ -66,8 +67,6 @@ profile calibre @{exec_path} {
|
|||||||
|
|
||||||
/usr/share/calibre/{,**} r,
|
/usr/share/calibre/{,**} r,
|
||||||
/usr/share/hwdata/pnp.ids r,
|
/usr/share/hwdata/pnp.ids r,
|
||||||
/usr/share/qt5/**.pak r,
|
|
||||||
/usr/share/qt5ct/** r,
|
|
||||||
|
|
||||||
/etc/fstab r,
|
/etc/fstab r,
|
||||||
/etc/inputrc r,
|
/etc/inputrc r,
|
||||||
|
@ -17,6 +17,7 @@ profile flameshot @{exec_path} {
|
|||||||
include <abstractions/freedesktop.org>
|
include <abstractions/freedesktop.org>
|
||||||
include <abstractions/dri-enumerate>
|
include <abstractions/dri-enumerate>
|
||||||
include <abstractions/mesa>
|
include <abstractions/mesa>
|
||||||
|
include <abstractions/qt5>
|
||||||
include <abstractions/qt5-compose-cache-write>
|
include <abstractions/qt5-compose-cache-write>
|
||||||
include <abstractions/qt5-settings-write>
|
include <abstractions/qt5-settings-write>
|
||||||
include <abstractions/thumbnails-cache-read>
|
include <abstractions/thumbnails-cache-read>
|
||||||
@ -44,9 +45,6 @@ profile flameshot @{exec_path} {
|
|||||||
owner @{user_config_dirs}/flameshot/flameshot.ini* rwl -> @{user_config_dirs}/flameshot/#@{int},
|
owner @{user_config_dirs}/flameshot/flameshot.ini* rwl -> @{user_config_dirs}/flameshot/#@{int},
|
||||||
owner @{user_config_dirs}/flameshot/flameshot.ini.lock rwk,
|
owner @{user_config_dirs}/flameshot/flameshot.ini.lock rwk,
|
||||||
|
|
||||||
owner @{user_config_dirs}/qt5ct/{,**} r,
|
|
||||||
/usr/share/qt5ct/** r,
|
|
||||||
|
|
||||||
/var/lib/dbus/machine-id r,
|
/var/lib/dbus/machine-id r,
|
||||||
/etc/machine-id r,
|
/etc/machine-id r,
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ profile telegram-desktop @{exec_path} {
|
|||||||
include <abstractions/freedesktop.org>
|
include <abstractions/freedesktop.org>
|
||||||
include <abstractions/audio-client>
|
include <abstractions/audio-client>
|
||||||
include <abstractions/user-download-strict>
|
include <abstractions/user-download-strict>
|
||||||
|
include <abstractions/qt5>
|
||||||
include <abstractions/qt5-compose-cache-write>
|
include <abstractions/qt5-compose-cache-write>
|
||||||
include <abstractions/qt5-settings-write>
|
include <abstractions/qt5-settings-write>
|
||||||
include <abstractions/qt5-shader-cache>
|
include <abstractions/qt5-shader-cache>
|
||||||
@ -77,9 +78,6 @@ profile telegram-desktop @{exec_path} {
|
|||||||
|
|
||||||
/usr/share/hwdata/pnp.ids r,
|
/usr/share/hwdata/pnp.ids r,
|
||||||
|
|
||||||
owner @{user_config_dirs}/qt5ct/{,**} r,
|
|
||||||
/usr/share/qt5ct/** r,
|
|
||||||
|
|
||||||
# Allowed apps to open
|
# Allowed apps to open
|
||||||
@{lib}/firefox/firefox rPx,
|
@{lib}/firefox/firefox rPx,
|
||||||
@{bin}/smplayer rPx,
|
@{bin}/smplayer rPx,
|
||||||
|
Loading…
Reference in New Issue
Block a user