OSDN Git Service

net: core: add UID to flows, rules, and routes
authorLorenzo Colitti <lorenzo@google.com>
Thu, 3 Nov 2016 17:23:42 +0000 (02:23 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Mon, 19 Dec 2016 16:25:19 +0000 (01:25 +0900)
commit03441d56d878c40acd8e595548a68996199c2135
tree9067dec0969093f899348df7849173803e4570fa
parenteb964bdba79aee0f244efef0730d9d022ccc9ac8
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.

Bug: 16355602
Change-Id: Iea98e6fedd0fd4435a1f4efa3deb3629505619ab
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