mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 05:47:59 +00:00
Add qt5-write abstraction
Qt-based applications stores QFileDialog (latest browsed directory) and other shared user settings inside ~/.config/QtProject.conf. Currently available qt abstraction only allows to read it (by design), so this patch introduces abstraction that grants permissions for writing. PR: https://gitlab.com/apparmor/apparmor/merge_requests/159 (cherry picked from commit 69c4cabb93f1f07189687f830cdca7ddc506b857) Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
f18c39514c
commit
77ebda113e
11
profiles/apparmor.d/abstractions/qt5-settings-write
Normal file
11
profiles/apparmor.d/abstractions/qt5-settings-write
Normal file
@ -0,0 +1,11 @@
|
||||
# vim:syntax=apparmor
|
||||
# Allow writing shared settings for Qt-based applications
|
||||
|
||||
# User files
|
||||
|
||||
owner @{HOME}/.config/#[0-9]* rw,
|
||||
owner @{HOME}/.config/QtProject.conf rw,
|
||||
owner @{HOME}/.config/QtProject.conf.?????? l -> @{HOME}/.config/#[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9],
|
||||
owner @{HOME}/.config/QtProject.conf.?????? rw, # for temporary files like QtProject.conf.Aqrgeb
|
||||
owner @{HOME}/.config/QtProject.conf.lock rwk,
|
||||
|
Loading…
x
Reference in New Issue
Block a user