AppArmor: Fix oops in policy unpack auditing
authorJohn Johansen <john.johansen@canonical.com>
Sat, 10 Mar 2012 19:25:30 +0000 (11:25 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 14 Mar 2012 13:15:02 +0000 (06:15 -0700)
Post unpacking of policy a verification pass is made on x transition
indexes.  When this fails a call to audit_iface is made resulting in an
oops, because audit_iface is expecting a valid buffer position but
since the failure comes from post unpack verification there is none.

Make the position argument optional so that audit_iface can be called
from post unpack verification.

Signed-off-by: John Johansen <john.johansen@canonical.com>

No differences found