mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-30 16:42:14 +00:00
update(userspace/engine): support jsonpointer escaping in rule parser
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
parent
5ee62f66f7
commit
28d6a293fc
@ -196,9 +196,9 @@ local G = {
|
|||||||
Identifier = V "idStart" * V "idRest" ^ 0,
|
Identifier = V "idStart" * V "idRest" ^ 0,
|
||||||
Macro = V "idStart" * V "idRest" ^ 0 * -P ".",
|
Macro = V "idStart" * V "idRest" ^ 0 * -P ".",
|
||||||
Int = digit ^ 1,
|
Int = digit ^ 1,
|
||||||
PathString = (alnum + S ",.-_/*?") ^ 1,
|
ArgString = (alnum + S ",.-_/*?~") ^ 1,
|
||||||
PortRangeString = (V "Int" + S ":,") ^ 1,
|
PortRangeString = (V "Int" + S ":,") ^ 1,
|
||||||
Index = V "PortRangeString" + V "Int" + V "PathString",
|
Index = V "PortRangeString" + V "Int" + V "ArgString",
|
||||||
FieldName = V "Identifier" * (P "." + V "Identifier") ^ 1 * (P "[" * V "Index" * P "]") ^ -1,
|
FieldName = V "Identifier" * (P "." + V "Identifier") ^ 1 * (P "[" * V "Index" * P "]") ^ -1,
|
||||||
Name = C(V "Identifier") * -V "idRest",
|
Name = C(V "Identifier") * -V "idRest",
|
||||||
Hex = (P("0x") + P("0X")) * xdigit ^ 1,
|
Hex = (P("0x") + P("0X")) * xdigit ^ 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user