Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(apparmor): Fix screenshot capture under AppArmor
Browse files Browse the repository at this point in the history
AppArmor denies creating screenshot file:
```
type=AVC msg=audit(1552817813.136:554): apparmor="DENIED"
operation="mkdir" profile="qtox"
name="/home/vincas/.local/share/Tox/qTox/images/" pid=16100 comm="qtox"
requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
```

Add file rule to allow creating desktop screenshot.
  • Loading branch information
Talkless committed Mar 25, 2019
1 parent f6c11c9 commit 5304ba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions security/apparmor/2.12.1/usr.bin.qtox
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ profile qtox /usr{,/local}/bin/qtox {
owner @{HOME}/.fonts/.uuid* rw,
owner @{HOME}/.fonts/.uuid.* l -> @{HOME}/.fonts/.uuid.*,
owner @{HOME}/.fonts/.uuid.*/ rw,
owner @{HOME}/.local/share/Tox/{,**} rw,
owner @{HOME}/.local/share/qTox/{,**} rw,
owner @{HOME}/.local/share/user-places.xbel r, # file dialog
owner @{PROC}/@{pid}/cmdline r,
Expand Down
1 change: 1 addition & 0 deletions security/apparmor/2.13.2/usr.bin.qtox
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ profile qtox /usr{,/local}/bin/qtox {
owner @{HOME}/.fonts/.uuid* rw,
owner @{HOME}/.fonts/.uuid.* l -> @{HOME}/.fonts/.uuid.*,
owner @{HOME}/.fonts/.uuid.*/ rw,
owner @{HOME}/.local/share/Tox/{,**} rw,
owner @{HOME}/.local/share/qTox/{,**} rw,
owner @{HOME}/.local/share/user-places.xbel r, # file dialog
owner @{PROC}/@{pid}/cmdline r,
Expand Down

0 comments on commit 5304ba4

Please sign in to comment.