aa-notify doesn't display certain apparmor events
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| AppArmor |
Fix Released
|
High
|
Steve Beattie | ||
| apparmor (Ubuntu) |
Fix Released
|
High
|
Steve Beattie | ||
| Precise |
Fix Released
|
High
|
Steve Beattie | ||
Bug Description
This works properly:
[153157.745909] type=1400 audit(130876702
This doesn't get displayed at all:
[153073.826757] type=1400 audit(130876694
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: apparmor-notify 2.6.1-0ubuntu3
ProcVersionSign
Uname: Linux 2.6.38-10-generic x86_64
Architecture: amd64
Date: Wed Jun 22 14:30:37 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110302)
PackageArchitec
ProcEnviron:
LANGUAGE=en_CA:en
PATH=(custom, user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
ProcKernelCmdline: BOOT_IMAGE=
ProcVersionSign
SourcePackage: apparmor
UpgradeStatus: No upgrade log present (probably fresh install)
- ApparmorPackages.txt Edit (277 bytes, text/plain; charset="utf-8")
- ApparmorStatusOutput.txt Edit (935 bytes, text/plain; charset="utf-8")
- Dependencies.txt Edit (1.1 KiB, text/plain; charset="utf-8")
- KernLog.txt Edit (45.7 KiB, text/plain; charset="utf-8")
- PstreeP.txt Edit (14.9 KiB, text/plain; charset="utf-8")
This seems to be a problem with the bindings. Attached is a minimal reproducer:
$ perl /tmp/800826.pl
== path denial ==
Audit ID: 1308767024.828:3705
PID: 24791
Epoch: 1308767024
Operation: open
Denied mask: r
Name: /opt/server/
== net denial ==
Audit ID: 1308766940.698:3704
PID: 24743
Epoch: 1308766940
Operation: sendmsg
Use of uninitialized value in concatenation (.) or string at /tmp/800826.pl line 27.
Denied mask:
Use of uninitialized value in concatenation (.) or string at /tmp/800826.pl line 29.
Family:
Use of uninitialized value in concatenation (.) or string at /tmp/800826.pl line 30.
Sock:
Notice that while the 'path' test is fine, the 'net' test doesn't seem to be working right. These tests are based on what aa-notify does.
The issue here is that the logging messages related to networking had the ip addresses and ports added to them, but the log parsing library has not been updated to take them into account. I'm working on a patch for this.
This also affects logprof, see https:/
This bug was fixed in the package apparmor - 2.7.102-0ubuntu3
---------------
apparmor (2.7.102-0ubuntu3) precise; urgency=low
[ Jamie Strandboge ]
* debian/
to describe Ubuntu's two-stage policy load and how to add utilize it
when developing policy (LP: #974089)
[ Serge Hallyn ]
* debian/
removed once stacked profiles are supported and used by lxc.
(LP: #978297)
[ Steve Beattie ]
* debian/
for change_profile onexec (LP: #963756)
* debian/
debian/
to support the 'in' keyword for value lists, and make mount
operations aware of 'in' keyword so they can affect the flags build
list (LP: #959560)
* debian/
exec events in complain mode (LP: #872446)
* debian/
dovecot imap-login profile (LP: #978584)
* debian/
log parsing library from dropping apparmor network events that
contain ip addresses or ports in them (LP: #800826)
* debian/
syntax and usage in apparmor.d(5) manpage (LP: #979095)
* debian/
for profiles without attachment specification (LP: #963756,
LP: #978038)
* debian/
loading policy to kernels without compat patches (LP: #968956)
* debian/
grant access to /proc/attr api (LP: #979135)
-- Steve Beattie <email address hidden> 2012年4月12日 06:17:42 -0500