2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-29 21:38:15 +00:00

oops, fix the rlimit table size test

This commit is contained in:
John Johansen 2008-06-09 10:15:31 +00:00
parent 303721fca2
commit 5655293cf8

View File

@ -401,7 +401,7 @@ linux limitations.
+ profile->rlimits.mask = tmp; + profile->rlimits.mask = tmp;
+ +
+ size = aa_is_array(e, NULL); + size = aa_is_array(e, NULL);
+ if (size <= RLIM_NLIMITS) + if (size > RLIM_NLIMITS)
+ goto fail; + goto fail;
+ for (i = 0; i < size; i++) { + for (i = 0; i < size; i++) {
+ u64 tmp = 0; + u64 tmp = 0;