fw4: perform strict validation of zone and set names
authorJo-Philipp Wich <jo@mein.io>
Thu, 12 Oct 2023 07:33:32 +0000 (09:33 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 12 Oct 2023 07:33:32 +0000 (09:33 +0200)
commit4101dd42473bfda24e3bfd958f0edfff8c8efa90
treee919d629881f50d78472836b666beb456d26c176
parent598d9fbb5179667aa0c525040eaa41bc7f2dc015
fw4: perform strict validation of zone and set names

The nft syntax grammar requires unquoted chain and set names which imposes
certain format restrictions. Introduce a new `identifier` datatype and use
it for validating set and zone names.

Fixes: https://github.com/openwrt/luci/issues/6633
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc