diff options
author | Chuck Lever | 2023-09-21 09:07:40 -0400 |
---|---|---|
committer | Jakub Kicinski | 2023-10-02 12:34:21 -0700 |
commit | a6b07a51b161ba1ad3d81919955fe77b697f9d48 (patch) | |
tree | 69b5a338fb249d8f73322b1824c2e335da11af8b /Documentation/netlink | |
parent | af54c197a90b804b57eb7ae4256aaeb5c46216c5 (diff) |
handshake: Fix sign of socket file descriptor fields
Socket file descriptors are signed integers. Use nla_get/put_s32 for
those to avoid implicit signed conversion in the netlink protocol.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/169530165057.8905.8650469415145814828.stgit@oracle-102.nfsv4bat.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/netlink')
-rw-r--r-- | Documentation/netlink/specs/handshake.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/netlink/specs/handshake.yaml b/Documentation/netlink/specs/handshake.yaml index 6d89e30f5fd5..a49b46b80e16 100644 --- a/Documentation/netlink/specs/handshake.yaml +++ b/Documentation/netlink/specs/handshake.yaml @@ -43,7 +43,7 @@ attribute-sets: attributes: - name: sockfd - type: u32 + type: s32 - name: handler-class type: u32 @@ -79,7 +79,7 @@ attribute-sets: type: u32 - name: sockfd - type: u32 + type: s32 - name: remote-auth type: u32 |