From: David Miller Subject: Re: [PATCH net-next v4 0/2] net: Introducing socket mark receive socket option Date: Mon, 02 Mar 2015 15:57:12 -0500 (EST) Message-ID: <20150302.155712.103799154284088691.davem@davemloft.net> References: <20150302143647.GC7418@breakpoint.cc> <20150302.150556.807426896557970379.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: fw@strlen.de, willemb@google.com, edumazet@google.com, shmulik.ladkani@gmail.com, netdev@vger.kernel.org To: eyal.birger@gmail.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:53757 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751914AbbCBU5P (ORCPT ); Mon, 2 Mar 2015 15:57:15 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Eyal Birger Date: Mon, 2 Mar 2015 22:38:50 +0200 > I can sum up the motivation for this feature as follows: > > - skb->mark is set by user-space policy. It would make sense for > user-space to be > able to query the resolution of that policy on a per packet basis - > even if solely for the > purpose of debugging (e.g. fetching this meta-data on packet sockets > on the xmit path > in order to debug tc behavior) It is also set by routing, netfilter, classifier rules installed by the administrator. Therefore it is not universally true that it is safe to allow applications to access this value. I'm not applying this series, it's use case is at best dubious to me and there are security/protection concerns as well.