commit | b2ccbc8080d69fcf847f6fd1ec6369ea2995ec9f | [log] [tgz] |
---|---|---|
author | Serge E. Hallyn <serge.hallyn@canonical.com> | Tue Jul 26 18:58:31 2011 +0000 |
committer | Eric W. Biederman <ebiederm@aristanetworks.com> | Thu Aug 11 10:07:52 2011 -0500 |
tree | 1d860888124b32a45d14dfeda282c50f6cf279b2 | |
parent | 47767ff968cef285316b010f172dfb009d510b26 [diff] |
af_netlink.c: make netlink_capable userns-aware netlink_capable should check for permissions against the user namespace owning the socket in question. Changelog: Per Eric Dumazet advice, use sock_net(sk) instead of #ifdef. Signed-off-by: Serge E. Hallyn <serge.hallyn@canonical.com> Cc: Eric W. Biederman <ebiederm@xmission.com> Cc: Eric Dumazet <eric.dumazet@gmail.com>