AppArmor: Add mising end of structure test to caps unpacking
authorJohn Johansen <john.johansen@canonical.com>
Thu, 16 Feb 2012 15:06:41 +0000 (07:06 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 27 Feb 2012 19:38:20 +0000 (11:38 -0800)
commitcdbd2884df8ad026143bb482a96d38e616947b17
tree5a6490419450ee4fe7ae08c1fb57526f8e7c3cc3
parentd384b0a1a35f87f0ad70c29518f98f922b1c15cb
AppArmor: Add mising end of structure test to caps unpacking

The unpacking of struct capsx is missing a check for the end of the
caps structure.  This can lead to unpack failures depending on what else
is packed into the policy file being unpacked.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Kees Cook <kees@ubuntu.com>
security/apparmor/policy_unpack.c