acrn-kernel/net/netlabel
Jakub Kicinski 9c5d03d362 genetlink: start to validate reserved header bytes
We had historically not checked that genlmsghdr.reserved
is 0 on input which prevents us from using those precious
bytes in the future.

One use case would be to extend the cmd field, which is
currently just 8 bits wide and 256 is not a lot of commands
for some core families.

To make sure that new families do the right thing by default
put the onus of opting out of validation on existing families.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Paul Moore <paul@paul-moore.com> (NetLabel)
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-08-29 12:47:15 +01:00
..
Kconfig
Makefile
netlabel_addrlist.c
netlabel_addrlist.h
netlabel_calipso.c genetlink: start to validate reserved header bytes 2022-08-29 12:47:15 +01:00
netlabel_calipso.h
netlabel_cipso_v4.c genetlink: start to validate reserved header bytes 2022-08-29 12:47:15 +01:00
netlabel_cipso_v4.h
netlabel_domainhash.c
netlabel_domainhash.h
netlabel_kapi.c
netlabel_mgmt.c genetlink: start to validate reserved header bytes 2022-08-29 12:47:15 +01:00
netlabel_mgmt.h
netlabel_unlabeled.c genetlink: start to validate reserved header bytes 2022-08-29 12:47:15 +01:00
netlabel_unlabeled.h
netlabel_user.c
netlabel_user.h