diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-05-25 13:49:36 -0600 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-08-14 21:55:28 -0700 |
commit | a6c6796c7127de55cfa9bb0cfbb082ec0acd4eab (patch) | |
tree | 6723b8c4c3c2ca58e1988e72191468e51299f2a1 /scripts/rt-tester | |
parent | af4c6641f5ad445fe6d0832da42406dbd9a37ce4 (diff) | |
download | linux-a6c6796c7127de55cfa9bb0cfbb082ec0acd4eab.tar.gz linux-a6c6796c7127de55cfa9bb0cfbb082ec0acd4eab.tar.bz2 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 'scripts/rt-tester')
0 files changed, 0 insertions, 0 deletions