diff options
author | Chenbo Feng <fengc@google.com> | 2017-04-26 16:41:23 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-30 22:24:58 -0400 |
commit | 5d4e3443287b28a6e9c3436adbadba2497880bd1 (patch) | |
tree | e369c829a25317409192e8ddc0d13b207bf341b4 /include/uapi | |
parent | d68be71ea14d609a5f31534003319be5db422595 (diff) | |
download | linux-5d4e3443287b28a6e9c3436adbadba2497880bd1.tar.gz linux-5d4e3443287b28a6e9c3436adbadba2497880bd1.tar.bz2 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')
-rw-r--r-- | include/uapi/linux/bpf.h | 3 |
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), \ |