Skip to content
Commit b4490c5c authored by Carlos Neira's avatar Carlos Neira Committed by Alexei Starovoitov
Browse files

bpf: Added new helper bpf_get_ns_current_pid_tgid



New bpf helper bpf_get_ns_current_pid_tgid,
This helper will return pid and tgid from current task
which namespace matches dev_t and inode number provided,
this will allows us to instrument a process inside a container.

Signed-off-by: default avatarCarlos Neira <cneirabustos@gmail.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Acked-by: default avatarYonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200304204157.58695-3-cneirabustos@gmail.com
parent 1e2328e7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment