2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 01:57:43 +00:00

reject rlimit cpu in the parser

This commit is contained in:
John Johansen 2008-04-07 04:26:02 +00:00
parent 831f2e252c
commit aba82ff427

View File

@ -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: