From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH 5/5] net: Use netlink_ns_capable to verify the permisions of netlink messages Date: Thu, 8 May 2014 15:07:12 -0700 Message-ID: <20140508150712.35e41e66@nehalam.linuxnetplumber.net> References: <87d2g7d9ag.fsf_-_@x220.int.ebiederm.org> <536AB151.2070804@dti2.net> <20140507.185256.496391962242529591.davem@davemloft.net> <20140508142939.201b3e07@nehalam.linuxnetplumber.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Linus Torvalds , "security@kernel.org" , Vivek Goyal , "Serge E. Hallyn" , Simo Sorce , "Eric W. Biederman" , Network Development , "Jorge Boncompte [DTI2]" , David Miller To: Andy Lutomirski Return-path: Received: from mail-pd0-f172.google.com ([209.85.192.172]:44913 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755378AbaEHWHQ (ORCPT ); Thu, 8 May 2014 18:07:16 -0400 Received: by mail-pd0-f172.google.com with SMTP id g10so2814282pdj.31 for ; Thu, 08 May 2014 15:07:15 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 8 May 2014 14:49:11 -0700 Andy Lutomirski wrote: > TBH, I'm starting to think that the real solution is to add a new syscall: > > sys_net_ctl(int nl_proto, const void *intput, size_t inlen, void > *output, size_t outlen) No. Changing all the applications based on netlink is a really bad idea.