aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChenbo Feng <[email protected]>2017-04-26 16:41:23 -0700
committerDavid S. Miller <[email protected]>2017-04-30 22:24:58 -0400
commit5d4e3443287b28a6e9c3436adbadba2497880bd1 (patch)
treee369c829a25317409192e8ddc0d13b207bf341b4
parentd68be71ea14d609a5f31534003319be5db422595 (diff)
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 <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
-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), \