Skip to main content

Error running apparmor on Ubuntu 16.04

Category: Linux
linux-logo

As I recently tried to define some apparmor rules on Ubuntu 16.04. I realized that the service was not working properly.

Checking the service's status with systemctl status apparmor.service delivered the following result:

apparmor.service - LSB: AppArmor initialization
   Loaded: loaded (/etc/init.d/apparmor; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mi 2017-03-22 12:38:59 CET; 4s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 11760 ExecStart=/etc/init.d/apparmor start (code=exited, status=123)

Mär 22 12:38:59 salty apparmor[11760]: AppArmor-Analysefehler f?r /etc/apparmor.d/usr.bin.webbrowser-app in /etc/apparmor.d/usr.bin.webbrowser-app in Zeile 26: >>/usr/share/apparmor/hardware/graphics.d<< konn
Mär 22 12:38:59 salty apparmor[11760]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Mär 22 12:38:59 salty apparmor[11760]: Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
Mär 22 12:38:59 salty apparmor[11760]: AppArmor-Analysefehler f?r /etc/apparmor.d/usr.bin.webbrowser-app in /etc/apparmor.d/usr.bin.webbrowser-app in Zeile 26: >>/usr/share/apparmor/hardware/graphics.d<< konn
Mär 22 12:38:59 salty apparmor[11760]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Mär 22 12:38:59 salty apparmor[11760]:    ...fail!

This bug has been reported  in october 2015. The affected machine hase been setup in october 2016. This is one of those situations you don't want to be confronted with.

Installing the package "apparmor-easyprof-ubuntu" will solve this problem easily.

sudo apt-get install apparmor-easyprof-ubuntu

 

Monthly archive

Categories

Debian (2)

Git (4)

Jira (1)

jQuery (1)

Linux (2)

MySQL (1)

PHP (1)