From 5655293cf859d394327d8b48c75ad7a40ee20b43 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Mon, 9 Jun 2008 10:15:31 +0000 Subject: [PATCH] oops, fix the rlimit table size test --- kernel-patches/2.6.25/apparmor-rlimits.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel-patches/2.6.25/apparmor-rlimits.diff b/kernel-patches/2.6.25/apparmor-rlimits.diff index 959100fea..7a83102c7 100644 --- a/kernel-patches/2.6.25/apparmor-rlimits.diff +++ b/kernel-patches/2.6.25/apparmor-rlimits.diff @@ -401,7 +401,7 @@ linux limitations. + profile->rlimits.mask = tmp; + + size = aa_is_array(e, NULL); -+ if (size <= RLIM_NLIMITS) ++ if (size > RLIM_NLIMITS) + goto fail; + for (i = 0; i < size; i++) { + u64 tmp = 0;