mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +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 69c4cabb93
)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
committed by
John Johansen
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,
|
||||||
|
|
Reference in New Issue
Block a user