diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-09-21 15:07:40 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-10-02 21:34:21 +0200 |
commit | a6b07a51b161ba1ad3d81919955fe77b697f9d48 (patch) | |
tree | 69b5a338fb249d8f73322b1824c2e335da11af8b /Documentation/netlink/specs | |
parent | Merge branch 'mlxsw-annotate-structs-with-__counted_by' (diff) | |
download | linux-a6b07a51b161ba1ad3d81919955fe77b697f9d48.tar.xz linux-a6b07a51b161ba1ad3d81919955fe77b697f9d48.zip |
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/specs')
-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 |