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

fix(apparmor): Fix loading libraries from custom install prefix

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.
This commit is contained in:
Vincas Dargis 2019-01-26 15:08:34 +02:00
parent f8f7a2d145
commit 5fad77b9f8
2 changed files with 10 additions and 0 deletions

View File

@ -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,

View File

@ -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,