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

Commit

Permalink
docs(apparmor): Fix custom install prefix example
Browse files Browse the repository at this point in the history
AppArmor profile attachement example is wrong because it does not use {
} "alternations" to make comma define alternative executable path.

Update example to make it actually work in custom install prefix case.
  • Loading branch information
Talkless committed Mar 25, 2019
1 parent 5899b0d commit 3c7b007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/apparmor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ sudo apparmor_parser -r /etc/apparmor.d/usr.bin.qtox

For custom installations, when `qTox` executable is not `/usr/bin/qtox` or `/usr/local/bin/qtox`:
1. create `/etc/apparmor.d/tunables/usr.bin.qtox.d/local`, adding `@{qtox_prefix} += /path/to/your/custom/install/prefix` line.
2. modify `/etc/apparmor.d/usr.bin.qtox` profile attachement path: `profile qtox /usr{,local}/bin/qtox,/path/to/your/qtox_executable {`
2. modify `/etc/apparmor.d/usr.bin.qtox` profile attachement path: `profile qtox /{usr{,local}/bin/qtox,path/to/your/qtox_executable} {`

Restart AppArmor and [check](#checking-if-qtox-is-actually-confined) if `qTox` process under custom path is actually confined.

Expand Down

0 comments on commit 3c7b007

Please sign in to comment.