Patchwork [01/13] Revert "UBUNTU: SAUCE: AppArmor: Fix unpack of network tables."

login
register
mail settings
Submitter John Johansen
Date Aug. 11, 2011, 5:02 a.m.
Message ID <1313038967-19941-2-git-send-email-john.johansen@canonical.com>
Download mbox | patch
Permalink /patch/109520/
State New
Headers show

Comments

John Johansen - Aug. 11, 2011, 5:02 a.m.
This reverts commit 233dad6fd0222c085ff7429e959fb4dbb7b7fd5c.
---
 security/apparmor/policy_unpack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/security/apparmor/policy_unpack.c b/security/apparmor/policy_unpack.c
index f4874c4..f78370b 100644
--- a/security/apparmor/policy_unpack.c
+++ b/security/apparmor/policy_unpack.c
@@ -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) ||