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 loading libraries from custom install prefix
Browse files Browse the repository at this point in the history
If qtox is installed in /usr/local prefix (for example), launching qTox
fails because loading libraries from @{qtox_prefix} directory was not
allowed.

Add rule to allow loading libraries from @{qtox_prefix}/lib directory.
  • Loading branch information
Talkless committed Mar 25, 2019
1 parent f8f7a2d commit 5fad77b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions security/apparmor/2.12.1/usr.bin.qtox
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ profile qtox /usr{,/local}/bin/qtox {
#TODO: use xdg-open abstraction when it's available
/usr/bin/xdg-open PUx,

# Additional libraries

# Allow /usr/local/lib/libtoxcore.so...
@{qtox_prefix}/lib/*.so* mr,

# Networking

network tcp,
Expand Down
5 changes: 5 additions & 0 deletions security/apparmor/2.13.2/usr.bin.qtox
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ profile qtox /usr{,/local}/bin/qtox {
#TODO: use xdg-open abstraction when it's available
/usr/bin/xdg-open PUx,

# Additional libraries

# Allow /usr/local/lib/libtoxcore.so...
@{qtox_prefix}/lib/*.so* mr,

# Networking

network tcp,
Expand Down

0 comments on commit 5fad77b

Please sign in to comment.