Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760954AbbKTT4i (ORCPT ); Fri, 20 Nov 2015 14:56:38 -0500 Received: from mail.us.es ([193.147.175.20]:50161 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760027AbbKTT4f (ORCPT ); Fri, 20 Nov 2015 14:56:35 -0500 Date: Fri, 20 Nov 2015 20:56:25 +0100 From: Pablo Neira Ayuso To: David Miller Cc: tj@kernel.org, kaber@trash.net, kadlec@blackhole.kfki.hu, lizefan@huawei.com, hannes@cmpxchg.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, daniel@iogearbox.net, daniel.wagner@bmw-carit.de, nhorman@tuxdriver.com Subject: Re: [PATCHSET v2] netfilter, cgroup: implement xt_cgroup2 match Message-ID: <20151120195625.GA1124@salvia> References: <1447959171-20749-1-git-send-email-tj@kernel.org> <20151120.135912.1506496112678349111.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151120.135912.1506496112678349111.davem@davemloft.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1755 Lines: 42 On Fri, Nov 20, 2015 at 01:59:12PM -0500, David Miller wrote: > From: Tejun Heo > Date: Thu, 19 Nov 2015 13:52:44 -0500 > > > This is the second take of the xt_cgroup2 patchset. Changes from the > > last take are > > > > * Instead of adding sock->sk_cgroup separately, sock->sk_cgrp_data now > > carries either (prioidx, classid) pair or cgroup2 pointer. This > > avoids inflating struct sock with yet another cgroup related field. > > Unfortunately, this does add some complexity but that's the > > trade-off and the complexity is contained in cgroup proper. > > > > * Various small updats as per David and Jan's reviews. > > I like this a lot better, thanks. > > Please address Daniel's feedback on patch #6 and then I'm personally > fine with this series. > > Pablo, are you ok with me merging this into net-next directly or > would you rather I take patches 1-6 into net-next and then you can > merge and then add patch #7 on top? I'd suggest you get 1-6, then I'll pull this info my tree. Thanks David! Regarding #7, I have a couple two concerns: 1) cgroup currently doesn't work the way users expect, ie. to perform any reasonable firewalling. Since this relies on early demux, only a limited number of sockets get access to the cgroup info. 2) We have traditionally rejected match2 and target2 extensions. I guess you can accomodate the new cgroup code through the revision iptables infrastructure, so we still use the cgroup match. Let me know, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/