mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +00:00
reject rlimit cpu in the parser
This commit is contained in:
parent
831f2e252c
commit
aba82ff427
@ -631,6 +631,8 @@ rules: rules TOK_SET TOK_RLIMIT TOK_ID TOK_LE TOK_VALUE TOK_END_OF_RULE
|
||||
tmp = strtoll($6, &end, 0);
|
||||
switch (limit) {
|
||||
case RLIMIT_CPU:
|
||||
yyerror("RLIMIT '%s' is currently unsupported\n", $4);
|
||||
break;
|
||||
case RLIMIT_NOFILE:
|
||||
case RLIMIT_NPROC:
|
||||
case RLIMIT_LOCKS:
|
||||
|
Loading…
x
Reference in New Issue
Block a user