Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I get live notifications on my desktop whenever an AppArmor denied message is triggered?

share|improve this question
up vote 2 down vote accepted

This can be done with apparmor-notify

  1. Install it through apt (sudo apt-get install apparmor-notify)
  2. In /etc/apparmor/notify.conf change the usergroup to 'adm' (all users using sudo are in this group)
  3. add aa-notify -p to your startup applications.

You can then test it by triggering a AppArmor Denied event with

sudo tcpdump -i eth0 -n -s 0 -w /foo
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.