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)
commit89d256bb69f2596c3a31ac51466eac9e1791c388
treed53814c879a6f5d23dc684de877a074d4cc29f3d
parentea6bb99ed5860c8906f2ae281da391227f1f027c
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