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:
parent
303721fca2
commit
5655293cf8
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user