1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(apparmor): Fix hunspell access

AppArmor denies access to hunspell files:
```
type=AVC msg=audit(1548511779.241:1773): apparmor="DENIED"
operation="open" profile="qtox" name="/usr/share/hunspell/lt_LT.aff"
pid=9833 comm="qtox" requested_mask="r" denied_mask="r" fsuid=1000
ouid=0

type=AVC msg=audit(1548511779.241:1774): apparmor="DENIED"
operation="open" profile="qtox" name="/usr/share/hunspell/lt_LT.dic"
pid=9833 comm="qtox" requested_mask="r" denied_mask="r" fsuid=1000
ouid=0
```

Add rule to allow reading hunspell dictionaries.
This commit is contained in:
Vincas Dargis 2019-01-26 16:13:25 +02:00
parent a67faf2976
commit 577aeb8fa3
2 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ profile qtox /usr{,/local}/bin/qtox {
# System files # System files
/usr/share/hunspell/* r,
@{qtox_additional_rw_dirs}/ r, @{qtox_additional_rw_dirs}/ r,
@{qtox_additional_rw_dirs}/** rw, @{qtox_additional_rw_dirs}/** rw,

View File

@ -56,6 +56,7 @@ profile qtox /usr{,/local}/bin/qtox {
# System files # System files
/usr/share/hunspell/* r,
@{qtox_additional_rw_dirs}/ r, @{qtox_additional_rw_dirs}/ r,
@{qtox_additional_rw_dirs}/** rw, @{qtox_additional_rw_dirs}/** rw,