mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
Fix and optimizations for flameshot profile
Profile simplification PATH and better use for abstractions. Add permission for @{user_cache_dirs}
This commit is contained in:
parent
3748a13710
commit
60ba9ae965
1 changed files with 5 additions and 4 deletions
|
@ -11,6 +11,7 @@ include <tunables/global>
|
||||||
profile flameshot @{exec_path} {
|
profile flameshot @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/desktop>
|
include <abstractions/desktop>
|
||||||
|
include <abstractions/dconf-write>
|
||||||
include <abstractions/fontconfig-cache-read>
|
include <abstractions/fontconfig-cache-read>
|
||||||
include <abstractions/graphics>
|
include <abstractions/graphics>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
|
@ -35,13 +36,13 @@ profile flameshot @{exec_path} {
|
||||||
|
|
||||||
/var/lib/dbus/machine-id r,
|
/var/lib/dbus/machine-id r,
|
||||||
/etc/machine-id r,
|
/etc/machine-id r,
|
||||||
/usr/share/flameshot/translations/* r,
|
/usr/share/flameshot/{,**} r,
|
||||||
|
|
||||||
owner @{user_config_dirs}/dconf/user r,
|
owner @{user_cache_dirs}/flameshot/ rw,
|
||||||
|
owner @{user_cache_dirs}/flameshot/** rw,
|
||||||
owner @{user_config_dirs}/flameshot/ rw,
|
owner @{user_config_dirs}/flameshot/ rw,
|
||||||
owner @{user_config_dirs}/flameshot/** rwlk -> @{user_config_dirs}/flameshot/**,
|
owner @{user_config_dirs}/flameshot/** rwlk -> @{user_config_dirs}/flameshot/**,
|
||||||
owner @{user_config_dirs}/ibus/bus/@{hex32}-unix-wayland-0 r,
|
owner @{user_config_dirs}/ibus/bus/@{hex32}-unix-{,wayland-}@{int} r,
|
||||||
owner @{run}/user/@{uid}/dconf/user rw,
|
|
||||||
|
|
||||||
owner @{tmp}/*= rw,
|
owner @{tmp}/*= rw,
|
||||||
owner @{tmp}/*.png rw,
|
owner @{tmp}/*.png rw,
|
||||||
|
|
Loading…
Reference in a new issue