From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753292Ab2HOIUU (ORCPT ); Wed, 15 Aug 2012 04:20:20 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:45922 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751288Ab2HOIUQ (ORCPT ); Wed, 15 Aug 2012 04:20:16 -0400 X-Greylist: delayed 494 seconds by postgrey-1.27 at vger.kernel.org; Wed, 15 Aug 2012 04:20:16 EDT Subject: Re: [PATCH 15/21] net sched: Pass the skb into change so it can access NETLINK_CB From: Jamal Hadi Salim Reply-To: jhs@mojatatu.com To: "Eric W. Biederman" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, containers@lists.linux-foundation.org, David Miller , Serge Hallyn In-Reply-To: <1344889115-21610-15-git-send-email-ebiederm@xmission.com> References: <87ehnav9n5.fsf@xmission.com> <1344889115-21610-1-git-send-email-ebiederm@xmission.com> <1344889115-21610-15-git-send-email-ebiederm@xmission.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 15 Aug 2012 04:11:54 -0400 Message-ID: <1345018314.20443.4.camel@mojatatu> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2012-08-13 at 13:18 -0700, Eric W. Biederman wrote: > From: "Eric W. Biederman" > > cls_flow.c plays with uids and gids. Unless I misread that > code it is possible for classifiers to depend on the specific uid and > gid values. Therefore I need to know the user namespace of the > netlink socket that is installing the packet classifiers. Pass > in the rtnetlink skb so I can access the NETLINK_CB of the passed > packet. In particular I want access to sk_user_ns(NETLINK_CB(in_skb).ssk). > > Pass in not the user namespace but the incomming rtnetlink skb into > the the classifier change routines as that is generally the more useful > parameter. > > Cc: Jamal Hadi Salim > Acked-by: Serge Hallyn > Signed-off-by: Eric W. Biederman Acked-by: Jamal Hadi Salim cheers, jamal