]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] NETFILTER: Missing check for CAP_NET_ADMIN in iptables compat layer
authorPatrick McHardy <kaber@trash.net>
Fri, 17 Nov 2006 05:35:41 +0000 (06:35 +0100)
committerChris Wright <chrisw@sous-sol.org>
Sat, 2 Dec 2006 00:12:35 +0000 (16:12 -0800)
commite4cb788a4c160fe69f8b4d770ce03ab62bdefb06
treec0b2e112cf749e54fe415c8e5a372183ff866e46
parent6ae616ea9dda7f6f5932dbaed31922fd27a83420
[PATCH] NETFILTER: Missing check for CAP_NET_ADMIN in iptables compat layer

The 32bit compatibility layer has no CAP_NET_ADMIN check in
compat_do_ipt_get_ctl, which for example allows to list the current
iptables rules even without having that capability (the non-compat
version requires it). Other capabilities might be required to exploit
the bug (eg. CAP_NET_RAW to get the nfnetlink socket?), so a plain user
can't exploit it, but a setup actually using the posix capability system
might very well hit such a constellation of granted capabilities.

Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/ipv4/netfilter/ip_tables.c