From f18c39514cf42e55332181bd08cfdf6e1b931ec6 Mon Sep 17 00:00:00 2001 From: Vincas Dargis Date: Sat, 14 Apr 2018 20:48:24 +0300 Subject: [PATCH] Add qt5 abstraction Create abtractions/qt5 with common rules needed for Qt5-based applications. PR: https://gitlab.com/apparmor/apparmor/merge_requests/99 (cherry picked from commit 6a85ffe00e4fe7a7eaccc5ed9a7981dbc6f42063) Signed-off-by: John Johansen --- profiles/apparmor.d/abstractions/qt5 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 profiles/apparmor.d/abstractions/qt5 diff --git a/profiles/apparmor.d/abstractions/qt5 b/profiles/apparmor.d/abstractions/qt5 new file mode 100644 index 000000000..f95ddcbfc --- /dev/null +++ b/profiles/apparmor.d/abstractions/qt5 @@ -0,0 +1,20 @@ +# vim:syntax=apparmor +# Common rules for Qt5-based applications + + # Additional libraries + + /usr/lib{,64,/@{multiarch}}/qt5/plugins/**.so mr, + /usr/lib{,64,/@{multiarch}}/qt5/qml/**.so mr, + /usr/lib{,64,/@{multiarch}}/qt5/qml/**.{qmlc,jsc} mr, # Precompiled QML/JavaScript modules + + # System files + + /etc/xdg/QtProject/qtlogging.ini r, + /usr/share/qt5/translations/*.qm r, + /usr/lib{,64,/@{multiarch}}/qt5/plugins/** r, + /usr/lib{,64,/@{multiarch}}/qt5/qml/** r, + + # User files + + owner @{HOME}/.config/QtProject.conf r, # common settings for QFileDialog, etc (application might need write access) +