summaryrefslogtreecommitdiffstats
path: root/include/net/tc_act/tc_tunnel_key.h
diff options
context:
space:
mode:
authorLorenzo Colitti2016-11-06 16:16:25 +0100
committerDavid S. Miller2016-11-09 19:28:10 +0100
commit35b80733b3d3ab620edc30f286606be775930843 (patch)
tree51050711a9fc2da7b58882e0631836f5b6b882b7 /include/net/tc_act/tc_tunnel_key.h
parentqed: Prevent stack corruption on MFW interaction (diff)
downloadkernel-qcow2-linux-35b80733b3d3ab620edc30f286606be775930843.tar.gz
kernel-qcow2-linux-35b80733b3d3ab620edc30f286606be775930843.tar.xz
kernel-qcow2-linux-35b80733b3d3ab620edc30f286606be775930843.zip
net: core: add missing check for uid_range in rule_exists.
Without this check, it is not possible to create two rules that are identical except for their UID ranges. For example: root@net-test:/# ip rule add prio 1000 lookup 300 root@net-test:/# ip rule add prio 1000 uidrange 100-200 lookup 300 RTNETLINK answers: File exists root@net-test:/# ip rule add prio 1000 uidrange 100-199 lookup 100 root@net-test:/# ip rule add prio 1000 uidrange 200-299 lookup 200 root@net-test:/# ip rule add prio 1000 uidrange 300-399 lookup 100 RTNETLINK answers: File exists Tested: https://android-review.googlesource.com/#/c/299980/ Signed-off-by: Lorenzo Colitti <lorenzo@google.com> Acked-by: Maciej Żenczykowski <maze@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tc_act/tc_tunnel_key.h')
0 files changed, 0 insertions, 0 deletions