Home
last modified time | relevance | path

Searched hist:"35 b80733b3d3ab620edc30f286606be775930843" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Dfib_rules.cdiff 35b80733b3d3ab620edc30f286606be775930843 Sun Nov 06 09:16:25 CST 2016 Lorenzo Colitti <lorenzo@google.com> 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>