Revert "UBUNTU: SAUCE: AppArmor: Fix unpack of network tables."
authorJohn Johansen <john.johansen@canonical.com>
Thu, 16 Feb 2012 12:23:54 +0000 (04:23 -0800)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:21:50 +0000 (13:21 -0700)
This reverts commit 122a0a96237fd774693d7c4324f9da90545eef15.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

security/apparmor/policy_unpack.c

index ee8043e..80a40f7 100644 (file)
@@ -580,7 +580,7 @@ static struct aa_profile *unpack_profile(struct aa_ext *e)
                        /* discard extraneous rules that this kernel will
                         * never request
                         */
-                       if (i >= AF_MAX) {
+                       if (i > AF_MAX) {
                                u16 tmp;
                                if (!unpack_u16(e, &tmp, NULL) ||
                                    !unpack_u16(e, &tmp, NULL) ||