diff options
author | Phil Sutter <phil@nwl.cc> | 2024-03-07 13:56:14 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2024-04-11 01:27:07 +0200 |
commit | 5d94baba0f43426120ce025aacaa74406659ad7f (patch) | |
tree | 1988b7c3cfb9c0388ecce343e216f52714f65c0b /tests/nft-expr_counter-test.c | |
parent | f8348db87791bb8061b7f9ecf856e835ab74d006 (diff) |
obj: Enforce attr_policy compliance in nftnl_obj_set_data()
Every object type defines an attr_policy array, so deny setting
attributes for object types which don't have it present or if it
specifies a non-zero maxlen which is lower than the given data_len.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/nft-expr_counter-test.c')
0 files changed, 0 insertions, 0 deletions