Currently it is not possible to only allow certain values in a filter that is permissive. If we had x in [values] and x not_in [values] operators, it would be possible to express such conditions. Currently we have to list all values that we want to deny. Example of the proposed:
"enable_only_inet": {
"mismatch_action": "allow",
"match_action": { "errno": 1},
"filter": [
{
"syscall": "socket",
"args": [
{
"index": 0,
"type": "dword",
"op", "not_in"
"val": [2, 10],
"comment": "deny all except AF_INET or AF_INET6"
}
]
}
]
}
Currently it is not possible to only allow certain values in a filter that is permissive. If we had
x in [values]andx not_in [values]operators, it would be possible to express such conditions. Currently we have to list all values that we want to deny. Example of the proposed: