Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6cfac78 authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Todd Kjos
Browse files

UPSTREAM: 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

Change-Id: I910f6b93f1d4b46b4b3adc980b73c1d7f9a64262
Tested: https://android-review.googlesource.com/#/c/299980/


Signed-off-by: default avatarLorenzo Colitti <lorenzo@google.com>
Acked-by: default avatarMaciej Żenczykowski <maze@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0455ac9d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment