From: Oliver Hartkopp Subject: Re: RFC: Network privilege separation. Date: Thu, 08 Jan 2009 08:05:45 +0100 Message-ID: <4965A5C9.9070201@hartkopp.net> References: <1231307334-9542-1-git-send-email-michael@laptop.org> <87mye2yg8a.fsf@basil.nowhere.org> <20090108023111.GJ3164@didacte.laptop.org> <20090108031042.GQ496@one.firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Michael Stone , linux-kernel@vger.kernel.org, netdev@vger.kernel.org To: Andi Kleen Return-path: Received: from mo-p00-ob.rzone.de ([81.169.146.162]:12312 "EHLO mo-p00-ob.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752542AbZAHHFq (ORCPT ); Thu, 8 Jan 2009 02:05:46 -0500 In-Reply-To: <20090108031042.GQ496@one.firstfloor.org> Sender: netdev-owner@vger.kernel.org List-ID: Andi Kleen wrote: > On Wed, Jan 07, 2009 at 09:31:11PM -0500, Michael Stone wrote: > >> * so far as I know, netfilter is only commonly used to filter IP traffic. >> Can >> I really use it to limit connections to abstract unix sockets? >> > > No you can't. But is that really your requirement? Why limiting Unix > sockets and not e.g. named pipes? Unix sockets do not talk to the network. > > I suppose I don't understand your requirements very well. > I think it would be very interesting for PF_CAN sockets also. CAN has no IP at all and the suggested idea of 'self-limiting' a user process to use only the already open sockets could be a way to address the use-cases Michael stated in his RFC. Regards, Oliver