]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: disallow bpf tc programs access current->pid,uid
authorAlexei Starovoitov <ast@plumgrid.com>
Tue, 16 Jun 2015 03:49:24 +0000 (20:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2015 03:51:20 +0000 (20:51 -0700)
commit82da45af25d81dcd2434bc553623cdbb5bdb7dae
treed53814c879a6f5d23dc684de877a074d4cc29f3d
parenteb6146aff4e0a94e57ee360b836000d458f341c4
bpf: disallow bpf tc programs access current->pid,uid

Accessing current->pid/uid from cls_bpf may lead to misleading results and
should not be used when TC classifiers need accurate information about pid/uid.

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c