mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
parser: Fix parsing of arrow “px -> …”
The parser failed to read the profile name after the the arrow. Rules with `-> foo-bar;` failed with “Found unexpected character: '-'”. Rules with `-> @{tgt};` compiled fine, but failed at runtime with “profile transition not found”. The patch was written by sbeattie and published on https://paste.ubuntu.com/p/tzxxmVwGJ8/ https://matrix.to/#/!pNJIrowvqsuGgjXsEY:matrix.org/$15477566201815716pmube:matrix.org?via=matrix.org&via=alea.gnuu.de
This commit is contained in:
parent
f729391deb
commit
0e0663e99e
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ include/{WS} {
|
|||
|
||||
{CARET} { PUSH_AND_RETURN(SUB_ID, TOK_CARET); }
|
||||
|
||||
{ARROW} { RETURN_TOKEN(TOK_ARROW); }
|
||||
{ARROW} { PUSH_AND_RETURN(SUB_ID_WS, TOK_ARROW); }
|
||||
|
||||
{EQUALS} { PUSH_AND_RETURN(ASSIGN_MODE, TOK_EQUALS); }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue