diff options
author | Johannes Berg <johannes.berg@intel.com> | 2019-03-31 23:12:41 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2019-07-06 11:47:17 +0200 |
commit | 10b8f7ab9c71356618813fcbb320105f0c7894a3 (patch) | |
tree | b07c9a246929177464858bd4897f977ad11ccdaa /backport/compat/Kconfig | |
parent | 25fa8919b124f8d7585327988b2a0a4a325e87d6 (diff) |
backport: Extend netlink parsing with strict validation
This extends the backported netlink handling with strict parsing. the
struct gen_ops now supports the validate member and does the validation
inside the backport layer.
This is needed to use backports with kernel 5.2.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
[Hauke: Remove nla_validate_nested()]
[Hauke: Support struct genl_ops on older kernel versions]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport/compat/Kconfig')
-rw-r--r-- | backport/compat/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backport/compat/Kconfig b/backport/compat/Kconfig index 20f34f1a..1d85a5da 100644 --- a/backport/compat/Kconfig +++ b/backport/compat/Kconfig @@ -62,6 +62,11 @@ config BP_MODULES This symbol is necessary for the newer kconf tool, it looks for the "option modules" to control the 'm' state. +config BPAUTO_BUILD_NLATTR + def_bool y + depends on KERNEL_5_2 + #c-file lib/nlattr.c + config BPAUTO_BUILD_CORDIC tristate depends on !CORDIC |