diff options
author | Dmitry Safonov <dima@arista.com> | 2020-09-21 16:36:56 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2020-09-24 08:53:04 +0200 |
commit | 96392ee5a13b992563cfe07d23ee30d333b89126 (patch) | |
tree | b0ef5dc0aaa0325c06151cbb6b5108680ef2749b /include/net/xfrm.h | |
parent | xfrm/compat: Add 32=>64-bit messages translator (diff) | |
download | linux-96392ee5a13b992563cfe07d23ee30d333b89126.tar.xz linux-96392ee5a13b992563cfe07d23ee30d333b89126.zip |
xfrm/compat: Translate 32-bit user_policy from sockptr
Provide compat_xfrm_userpolicy_info translation for xfrm setsocketopt().
Reallocate buffer and put the missing padding for 64-bit message.
Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index fa18cb6bb3f7..53618a31634b 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -2012,6 +2012,9 @@ struct xfrm_translator { int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack); + /* Translate 32-bit user_policy from sockptr */ + int (*xlate_user_policy_sockptr)(u8 **pdata32, int optlen); + struct module *owner; }; |