summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/bpf.h
diff options
context:
space:
mode:
authorChenbo Feng2017-04-27 01:41:23 +0200
committerDavid S. Miller2017-05-01 04:24:58 +0200
commit5d4e3443287b28a6e9c3436adbadba2497880bd1 (patch)
treee369c829a25317409192e8ddc0d13b207bf341b4 /include/uapi/linux/bpf.h
parenttcp: fix access to sk->sk_state in tcp_poll() (diff)
downloadkernel-qcow2-linux-5d4e3443287b28a6e9c3436adbadba2497880bd1.tar.gz
kernel-qcow2-linux-5d4e3443287b28a6e9c3436adbadba2497880bd1.tar.xz
kernel-qcow2-linux-5d4e3443287b28a6e9c3436adbadba2497880bd1.zip
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: 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>
Diffstat (limited to 'include/uapi/linux/bpf.h')
-rw-r--r--include/uapi/linux/bpf.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index e553529929f6..945a1f5f63c5 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -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), \