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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2016 18:45:23 +0000 (14:45 -0400)
commit622ec2c9d52405973c9f1ca5116eb1c393adfc7d
treea3de4c86ceba4dca3217e0207adc76daa9d8eaf9
parent86741ec25462e4c8cdce6df2f41ead05568c7d5e
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.

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