From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Fastabend Subject: Re: [flame^Wreview] net: netprio_cgroup: rework update socket logic Date: Mon, 13 Aug 2012 09:58:12 -0700 Message-ID: <50293224.90803@intel.com> References: <20120813015348.GZ23464@ZenIV.linux.org.uk> <502896C5.7080303@intel.com> <50289D7F.3070402@intel.com> <20120813121827.GB23464@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, David Miller , Neil Horman , linux-kernel@vger.kernel.org To: Al Viro Return-path: In-Reply-To: <20120813121827.GB23464@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org [...] > HOWEVER, it still doesn't address more fundamental problem - somebody > creating a socket and passing it to you in SCM_RIGHTS datagram will > leave you with a socket you can do IO on, still tagged according to who > had created it. > > AFAICS, the whole point of that exercise was to allow third-party changing > the priorities of traffic on sockets already created by a process we now > move to a different cgroup. Consider e.g. this: Correct that is the point of the exercise. To fix this specific case we could add a call to sock_update_netprioidx in scm_recv to set the sk_cgrp_prioidx value.