Thread (16 messages) flat view 16 messages, 2 authors, 2015-06-13

Re: [PATCH net-next 1/3] bpf: introduce current->pid, tgid, uid, gid, comm accessors

From: Andy Lutomirski <hidden>
Date: 2015-06-12 22:09:24
Also in: lkml, netdev

On Fri, Jun 12, 2015 at 2:40 PM, Alexei Starovoitov [off-list ref] wrote:
eBPF programs attached to kprobes need to filter based on
current->pid, uid and other fields, so introduce helper functions:

u64 bpf_get_current_pid_tgid(void)
Return: current->tgid << 32 | current->pid

u64 bpf_get_current_uid_gid(void)
Return: current_gid << 32 | current_uid
How does this work wrt namespaces, and why the weird packing?

--Andy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help