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