Re: [PATCH] bpf: Add bpf_skb_get_sock_comm() helper
From: Eric Dumazet
Date: Mon Aug 10 2020 - 10:56:14 EST
On 8/10/20 6:09 AM, Jiang Yu wrote:
> skb distinguished by uid can only recorded to user who consume them.
> in many case, skb should been recorded more specific to process who
> consume them. E.g, the unexpected large data traffic of illegal process
> in metered network.
>
> this helper is used in tracing task comm of the sock to which a skb
> belongs.
>
> Signed-off-by: Jiang Yu <jyu.jiang@xxxxxxxx>
fd can be passed from one process to another.