shared: add parser for SocketBind{Allow|Deny}=

Parse address family, ip protocol and ports, any of them can be
optional. If neither is specified, a special value 'any' is expected.
Helper is placed in shared to be reused in both fragment and dbus.
Add unit tests with valid and invalid examples.
This commit is contained in:
Julia Kartseva
2021-06-30 00:36:26 -07:00
parent 159d68c3e0
commit 8bd095aa9a
5 changed files with 253 additions and 0 deletions
+2
View File
@@ -225,6 +225,8 @@ shared_sources = files('''
pager.h
parse-argument.c
parse-argument.h
parse-socket-bind-item.c
parse-socket-bind-item.h
pe-header.h
pkcs11-util.c
pkcs11-util.h