| 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
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) ||