aa-logprof and aa-genprof work only with audit.log not syslog

Bug #1432350 reported by Ralf Spenneberg
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apparmor (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 14.10

apparmor 2.8.98-0ubuntu2

Analyzing the logs with aa-logprof works when the logs are written by audid:

# aa-logprof -f /var/log/audit/audit.log
Reading log entries from /var/log/audit/audit.log.
Updating AppArmor profiles in /etc/apparmor.d.
Complain-mode changes:
WARN: unknown capability: CAP_setgid

Profile: /usr/sbin/havp
Capability: setgid
Severity: unknown

 [1 - #include <abstractions/dovecot-common>]
  2 - #include <abstractions/postfix-common>
  3 - capability setgid
[(A)llow] / (D)eny / (I)gnore / Audi(t) / Abo(r)t / (F)inish

It does not work when the logs are written to /var/log/syslog
root@apparmor:~# aa-logprof
Reading log entries from /var/log/syslog.
Updating AppArmor profiles in /etc/apparmor.d.

One contained message:
Mar 15 13:20:07 test kernel: [ 3349.757377] audit: type=1400 audit(1426422007.555:122): apparmor="DENIED" operation="unlink" profile="/usr/sbin/havp" name="/run/havp/havp.pid" pid=10888 comm="havp" requested_mask="d" denied_mask="d" fsuid=109 ouid=109

Tags: aa-tools
Revision history for this message
Christian Boltz (cboltz) wrote :

That sounds like bug 1399027.

The libapparmor part is fixed in 2.9.1, the python side is only fixed in bzr (will be in 2.9.2). The openSUSE 13.2 update package and Factory already have the patch added to the package.

I'll let this bug open for Ubuntu - providing updated packages would make sense ;-)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apparmor (Ubuntu):
status: New → Confirmed
Revision history for this message
Thomas d'Otreppe (thomas-dotreppe) wrote :

Any update on this? 2.9.2 has been released on 2015-04-23.

Mathew Hodson (mhodson)
tags: added: aa-tools
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.