bpf: Fix inaccurate helper function description
authorChenbo Feng <fengc@google.com>
Wed, 26 Apr 2017 23:41:23 +0000 (16:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 02:24:58 +0000 (22:24 -0400)
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: Chenbo Feng <fengc@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/bpf.h

index e553529929f683c4c39ae336d10c6f670e589b54..945a1f5f63c546c5521da5254a80664344ebd0ad 100644 (file)
@@ -481,8 +481,7 @@ union bpf_attr {
  * u32 bpf_get_socket_uid(skb)
  *     Get the owner uid of the socket stored inside sk_buff.
  *     @skb: pointer to skb
- *     Return: uid of the socket owner on success or 0 if the socket pointer
- *     inside sk_buff is NULL
+ *     Return: uid of the socket owner on success or overflowuid if failed.
  */
 #define __BPF_FUNC_MAPPER(FN)          \
        FN(unspec),                     \