summaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorEric W. Biederman2012-05-25 21:49:36 +0200
committerEric W. Biederman2012-08-15 06:55:28 +0200
commita6c6796c7127de55cfa9bb0cfbb082ec0acd4eab (patch)
tree6723b8c4c3c2ca58e1988e72191468e51299f2a1 /net/netfilter
parentnet sched: Pass the skb into change so it can access NETLINK_CB (diff)
downloadkernel-qcow2-linux-a6c6796c7127de55cfa9bb0cfbb082ec0acd4eab.tar.gz
kernel-qcow2-linux-a6c6796c7127de55cfa9bb0cfbb082ec0acd4eab.tar.xz
kernel-qcow2-linux-a6c6796c7127de55cfa9bb0cfbb082ec0acd4eab.zip
userns: Convert cls_flow to work with user namespaces enabled
The flow classifier can use uids and gids of the sockets that are transmitting packets and do insert those uids and gids into the packet classification calcuation. I don't fully understand the details but it appears that we can depend on specific uids and gids when making traffic classification decisions. To work with user namespaces enabled map from kuids and kgids into uids and gids in the initial user namespace giving raw integer values the code can play with and depend on. To avoid issues of userspace depending on uids and gids in packet classifiers installed from other user namespaces and getting confused deny all packet classifiers that use uids or gids that are not comming from a netlink socket in the initial user namespace. Cc: Patrick McHardy <kaber@trash.net> Cc: Eric Dumazet <eric.dumazet@gmail.com> Cc: Jamal Hadi Salim <jhs@mojatatu.com> Cc: Changli Gao <xiaosuo@gmail.com> Acked-by: David S. Miller <davem@davemloft.net> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'net/netfilter')
0 files changed, 0 insertions, 0 deletions