Commit 5d4e3443 authored by Chenbo Feng's avatar Chenbo Feng Committed by David S. Miller

bpf: Fix inaccurate helper function description

The description inside uapi/linux/bpf.h about bpf_get_socket_uid
helper function is no longer valid. It returns overflowuid rather
than 0 when failed.
Signed-off-by: default avatarChenbo Feng <fengc@google.com>
Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d68be71e
...@@ -481,8 +481,7 @@ union bpf_attr { ...@@ -481,8 +481,7 @@ union bpf_attr {
* u32 bpf_get_socket_uid(skb) * u32 bpf_get_socket_uid(skb)
* Get the owner uid of the socket stored inside sk_buff. * Get the owner uid of the socket stored inside sk_buff.
* @skb: pointer to skb * @skb: pointer to skb
* Return: uid of the socket owner on success or 0 if the socket pointer * Return: uid of the socket owner on success or overflowuid if failed.
* inside sk_buff is NULL
*/ */
#define __BPF_FUNC_MAPPER(FN) \ #define __BPF_FUNC_MAPPER(FN) \
FN(unspec), \ FN(unspec), \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment