Files
linux/net
Jakub Kicinski bdbb4e29df netlink: add mask validation
We don't have good validation policy for existing unsigned int attrs
which serve as flags (for new ones we could use NLA_BITFIELD32).
With increased use of policy dumping having the validation be
expressed as part of the policy is important. Add validation
policy in form of a mask of supported/valid bits.

Support u64 in the uAPI to be future-proof, but really for now
the embedded mask member can only hold 32 bits, so anything with
bit 32+ set will always fail validation.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-10-06 06:25:55 -07:00
..
2020-09-18 14:12:43 -07:00
2020-09-30 14:21:30 -07:00
2020-10-06 06:23:21 -07:00
2020-10-06 06:23:21 -07:00
2020-08-27 07:55:59 -07:00
2020-10-06 06:08:06 -07:00
2020-10-06 06:25:55 -07:00
2020-09-20 19:09:11 -07:00
2020-10-06 06:23:21 -07:00