mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
parser: change network conditionals to allow unquoted ids
Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
parent
ddefe11a40
commit
7e25be7b0b
@ -517,12 +517,6 @@ GT >
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<NETWORK_MODE>{
|
|
||||||
{IDS} {
|
|
||||||
yylval.id = strdup(yytext);
|
|
||||||
RETURN_TOKEN(TOK_ID);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
<CHANGE_PROFILE_MODE>{
|
<CHANGE_PROFILE_MODE>{
|
||||||
safe { RETURN_TOKEN(TOK_SAFE); }
|
safe { RETURN_TOKEN(TOK_SAFE); }
|
||||||
@ -621,7 +615,7 @@ GT >
|
|||||||
sqpoll { RETURN_TOKEN(TOK_SQPOLL); }
|
sqpoll { RETURN_TOKEN(TOK_SQPOLL); }
|
||||||
}
|
}
|
||||||
|
|
||||||
<MOUNT_MODE,DBUS_MODE,SIGNAL_MODE,PTRACE_MODE,UNIX_MODE,MQUEUE_MODE,IOURING_MODE>{
|
<MOUNT_MODE,DBUS_MODE,SIGNAL_MODE,PTRACE_MODE,UNIX_MODE,MQUEUE_MODE,IOURING_MODE,NETWORK_MODE>{
|
||||||
({IDS_NOEQ}|{LABEL}|{QUOTED_ID}) {
|
({IDS_NOEQ}|{LABEL}|{QUOTED_ID}) {
|
||||||
yylval.id = processid(yytext, yyleng);
|
yylval.id = processid(yytext, yyleng);
|
||||||
RETURN_TOKEN(TOK_ID);
|
RETURN_TOKEN(TOK_ID);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user