diff options
author | 2024-07-13 02:19:02 +0000 | |
---|---|---|
committer | 2024-07-15 09:14:38 -0700 | |
commit | 0e83a7875d691f5b76c87d9223b22e5a0d34511e (patch) | |
tree | 5e1963607a5b86c062408cd999c5420f501ee200 /scripts/generate_rust_analyzer.py | |
parent | net/sched: cls_flower: prepare fl_{set,dump}_key_flags() for ENC_FLAGS (diff) | |
download | wireguard-linux-0e83a7875d691f5b76c87d9223b22e5a0d34511e.tar.xz wireguard-linux-0e83a7875d691f5b76c87d9223b22e5a0d34511e.zip |
net/sched: cls_flower: add policy for TCA_FLOWER_KEY_FLAGS
This policy guards fl_set_key_flags() from seeing flags
not used in the context of TCA_FLOWER_KEY_FLAGS.
In order For the policy check to be performed with the
correct endianness, then we also needs to change the
attribute type to NLA_BE32 (Thanks Davide).
TCA_FLOWER_KEY_FLAGS{,_MASK} already has a be32 comment
in include/uapi/linux/pkt_cls.h.
Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Tested-by: Davide Caratti <dcaratti@redhat.com>
Reviewed-by: Davide Caratti <dcaratti@redhat.com>
Link: https://patch.msgid.link/20240713021911.1631517-6-ast@fiberby.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions