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-06-14 01:57:21 +09:00
2020-08-23 17:36:59 -05:00
2020-09-28 00:51:39 -07:00
2020-08-03 15:48:32 -07:00
2020-09-18 14:12:43 -07:00
2020-07-25 17:49:04 -07:00
2020-10-02 19:11:11 -07:00
2020-09-29 13:22:53 -07:00
2020-09-30 08:34:08 -07:00
2020-08-20 16:02:36 +02:00
2020-10-05 18:40:01 -07:00
2020-09-05 15:57:05 -07:00
2020-09-21 10:13:16 +02:00
2020-10-02 15:27:08 -07:00
2020-10-06 06:14:02 -07:00
2020-09-10 15:09:08 -07:00
2020-09-30 14:21:30 -07:00
2020-08-23 17:36:59 -05:00
2020-10-05 05:56:48 -07:00
2020-05-23 16:56:17 -07:00
2020-10-06 06:25:55 -07:00
2020-10-02 19:11:11 -07:00
2020-10-02 19:11:11 -07:00
2020-10-06 06:23:21 -07:00
2020-10-06 06:23:21 -07:00
2020-10-03 16:51:07 -07:00
2020-07-24 15:41:54 -07:00
2020-08-02 01:02:12 -07:00
2020-10-02 19:11:11 -07:00
2020-08-27 07:55:59 -07:00
2020-06-14 01:57:21 +09:00
2020-07-24 15:41:54 -07:00
2020-10-02 12:07:24 +02:00
2020-09-08 20:12:58 -07:00
2020-08-23 17:36:59 -05:00
2020-10-06 06:08:06 -07:00
2020-10-02 19:11:11 -07:00
2020-10-04 14:35:53 -07:00
2020-10-02 19:11:11 -07:00
2020-10-06 06:25:55 -07:00
2020-08-23 17:36:59 -05:00
2020-09-05 16:01:52 -07:00
2020-06-14 01:57:21 +09:00
2020-10-06 06:23:21 -07:00
2020-09-19 16:40:48 -07:00
2020-08-23 17:36:59 -05:00
2020-10-02 19:11:11 -07:00
2020-09-28 15:54:57 -07:00
2020-09-20 19:09:11 -07:00
2020-08-23 17:36:59 -05:00
2020-09-14 16:18:59 +01:00
2020-10-05 18:40:01 -07:00
2020-09-22 16:45:34 -07:00
2020-10-03 17:04:48 -07:00
2020-10-05 18:40:01 -07:00
2020-09-23 17:46:31 -07:00
2020-10-02 19:11:11 -07:00
2020-10-05 18:40:01 -07:00
2020-09-21 14:51:37 -07:00
2020-08-12 12:56:06 -07:00
2020-10-02 19:11:11 -07:00
2020-10-02 19:11:11 -07:00
2020-08-23 17:36:59 -05:00
2020-10-05 18:40:01 -07:00
2020-10-06 06:23:21 -07:00
2020-08-07 12:43:25 -07:00
2020-06-30 15:57:34 -07:00
2020-09-30 18:01:26 -07:00
2020-05-23 16:56:17 -07:00
2020-10-05 18:40:01 -07:00