net: core: add UID to flows, rules, and routes lineage-16.0
authorLorenzo Colitti <lorenzo@google.com>
Thu, 3 Nov 2016 17:23:42 +0000 (02:23 +0900)
committerStricted <info@stricted.net>
Thu, 28 Feb 2019 11:55:41 +0000 (11:55 +0000)
commit1795ea3c237773d32616954a03738d67d209a8d7
treeb641e5479d276d6f77c89e53dc4cdd5b18491224
parent613e8336e0312f53fa79f9e79a0c9fe8950250f0
net: core: add UID to flows, rules, and routes

- Define a new FIB rule attributes, FRA_UID_RANGE, to describe a
  range of UIDs.
- Define a RTA_UID attribute for per-UID route lookups and dumps.
- Support passing these attributes to and from userspace via
  rtnetlink. The value INVALID_UID indicates no UID was
  specified.
- Add a UID field to the flow structures.

[Backport of net-next 622ec2c9d52405973c9f1ca5116eb1c393adfc7d]

Bug: 16355602
Change-Id: I7e3ab388ed862c4b7e39dc8b0209d977cb1129ac
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/fib_rules.h
include/net/flow.h
include/uapi/linux/fib_rules.h
include/uapi/linux/rtnetlink.h
net/core/fib_rules.c
net/ipv4/fib_frontend.c
net/ipv4/route.c
net/ipv6/route.c