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)
commitb1b4bc2ed94d157f3ed60c17a12b658ccb96a76f
treed586d6edc39a957d66df9dd2908759a6c5c622e5
parentef9a762279c9ce98c592fb144b31898411feb94d
AppArmor: Fix oops in policy unpack auditing

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>
security/apparmor/policy_unpack.c