From: Arnd Bergmann Subject: Re: [PATCH 2/2] tun: socket filter support Date: Mon, 15 Feb 2010 16:45:01 +0100 Message-ID: <201002151645.01410.arnd@arndb.de> References: <20100214110110.GC30182@redhat.com> <4B79673B.7050908@trash.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Cc: "Michael S. Tsirkin" , "David S. Miller" , Herbert Xu , Paul Moore , David Woodhouse , Sridhar Samudrala , netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Patrick McHardy Return-path: In-Reply-To: <4B79673B.7050908@trash.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Monday 15 February 2010, Patrick McHardy wrote: > I'm not sure how the tun socket is exposed, but won't the regular > SO_ATTACH_FILTER/SO_DETACH_FILTER setsockopts already work for > tun sockets? The tun socket is not exposed at all, it's an implementation detail of the tun/tap driver, which only has a chardev interface with ioctl methods. Arnd