Comment 1 for bug 835838

Revision history for this message
Fumihito YOSHIDA (hito) wrote : Re: aa-logprof: doesn't work complain mode.

I can reproduce this bug with upgraded natty/oneiric, not clean-installed.

Because clean-installed natty/oneiric does not have /var/log/messages. But if we upgrade maverick -> natty (-> oneiric), that cause 0-byte /var/log/messages.

So, we need change the logfiles entiry.
===============================================================
$ diff -u logprof.conf.orig logprof.conf
--- logprof.conf.orig 2011-04-19 02:36:30.000000000 +0900
+++ logprof.conf 2011-08-28 14:55:56.762774378 +0900
@@ -11,7 +11,7 @@
 [settings]
   profiledir = /etc/apparmor.d /etc/subdomain.d
   inactive_profiledir = /usr/share/doc/apparmor-profiles/extras
- logfiles = /var/log/audit/audit.log /var/log/messages /var/log/syslog
+ logfiles = /var/log/audit/audit.log /var/log/syslog /var/log/messages

   parser = /sbin/apparmor_parser /sbin/subdomain_parser
   ldd = /usr/bin/ldd
===============================================================