From aef47056367642d842e090d2362698dfcf9cc06a Mon Sep 17 00:00:00 2001 From: Vincas Dargis Date: Sat, 26 Jan 2019 15:31:49 +0200 Subject: [PATCH] fix(apparmor): Fix qTox cache access AppAmor denies access to qTox cache directory: ``` type=AVC msg=audit(1548508759.153:640): apparmor="DENIED" operation="mkdir" profile="qtox" name="/home/vincas/.cache/qTox/" pid=7802 comm="qtox" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000 ``` Add rule to allow access to qTox cache directory. --- security/apparmor/2.12.1/usr.bin.qtox | 1 + security/apparmor/2.13.2/usr.bin.qtox | 1 + 2 files changed, 2 insertions(+) diff --git a/security/apparmor/2.12.1/usr.bin.qtox b/security/apparmor/2.12.1/usr.bin.qtox index acbee0f42..d7d273260 100644 --- a/security/apparmor/2.12.1/usr.bin.qtox +++ b/security/apparmor/2.12.1/usr.bin.qtox @@ -85,6 +85,7 @@ profile qtox /usr{,/local}/bin/qtox { owner /{,var/}run/user/[0-9]*[0-9]/qTox*.slave-socket rwl -> /{,var/}run/user/[0-9]*[0-9]/#[0-9]*[0-9], # file dialog owner @{HOME}/.cache/Tox/ w, owner @{HOME}/.cache/Tox/qTox/{,**} rw, + owner @{HOME}/.cache/qTox/{,**} rw, owner @{HOME}/.cache/thumbnails/** rw, # receiving image file produces thumbnail? owner @{HOME}/.config/menus/ r, # file dialog owner @{HOME}/.config/menus/applications-merged/ r, # file dialog diff --git a/security/apparmor/2.13.2/usr.bin.qtox b/security/apparmor/2.13.2/usr.bin.qtox index 7455984ef..c765436c6 100644 --- a/security/apparmor/2.13.2/usr.bin.qtox +++ b/security/apparmor/2.13.2/usr.bin.qtox @@ -91,6 +91,7 @@ profile qtox /usr{,/local}/bin/qtox { owner /{,var/}run/user/@{uid}/qTox*.slave-socket rwl -> /{,var/}run/user/@{uid}/#[0-9]*[0-9], # file dialog owner @{HOME}/.cache/Tox/ w, owner @{HOME}/.cache/Tox/qTox/{,**} rw, + owner @{HOME}/.cache/qTox/{,**} rw, owner @{HOME}/.cache/thumbnails/** rw, # receiving image file produces thumbnail? owner @{HOME}/.config/menus/ r, # file dialog owner @{HOME}/.config/menus/applications-merged/ r, # file dialog