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