netfilter: nft_meta: use socket user_ns to retrieve skuid and skgid
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 3 Sep 2020 17:00:52 +0000 (19:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 15:36:27 +0000 (17:36 +0200)
commitd5bc41a812eeb05c4c9cc53ffc33e24dabdc321e
tree8c8643b3294fbf99c4c5065ec6d9d0ee633ff365
parentb47342e6341d706844b9cb2ce436f2eb80601543
netfilter: nft_meta: use socket user_ns to retrieve skuid and skgid

[ Upstream commit 0c92411bb81de9bc516d6924f50289d8d5f880e5 ]

... instead of using init_user_ns.

Fixes: 96518518cc41 ("netfilter: add nftables")
Tested-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nft_meta.c