2016-03-31 21:44:28 |
Chris Holcombe |
description |
I'm using juju to deploy apparmor profiles and I've found that when the apparmor path isn't found the command still exists 0. If this exited with a non zero status I could detect I had a problem in my code and take action :)
root@ip-172-31-29-100:/etc/apparmor.d/local# aa-complain foo
Can't find foo in the system path list. If the name of the application
is correct, please run 'which foo' as a user with correct PATH
environment set up in order to find the fully-qualified path and
use the full path as parameter.
root@ip-172-31-29-100:/etc/apparmor.d/local# echo $?
0 |
I'm using juju to deploy apparmor profiles and I've found that when the apparmor path isn't found the command still exists 0. If this exited with a non zero status I could detect I had a problem in my code and take action :)
root@ip-172-31-29-100:/etc/apparmor.d/local# aa-complain foo
Can't find foo in the system path list. If the name of the application
is correct, please run 'which foo' as a user with correct PATH
environment set up in order to find the fully-qualified path and
use the full path as parameter.
root@ip-172-31-29-100:/etc/apparmor.d/local# echo $?
0
Some context on the environment:
root@ip-172-31-29-100:/etc/apparmor.d/local# cat /etc/issue
Ubuntu 14.04.4 LTS \n \l |
|