From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luke Kenneth Casson Leighton Subject: Re: [PATCH 2.6 NETFILTER] new netfilter module ipt_program.c Date: Sat, 11 Sep 2004 14:34:43 +0100 Sender: linux-kernel-owner@vger.kernel.org Message-ID: <20040911133443.GG24787@lkcl.net> References: <20040911124106.GD24787@lkcl.net> <4142F4CC.7080708@trash.net> <20040911132935.GF24787@lkcl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, Netfilter Development Mailinglist Return-path: To: Patrick McHardy Content-Disposition: inline In-Reply-To: <20040911132935.GF24787@lkcl.net> List-Id: netfilter-devel.vger.kernel.org On Sat, Sep 11, 2004 at 02:29:35PM +0100, Luke Kenneth Casson Leighton wrote: > On Sat, Sep 11, 2004 at 02:51:24PM +0200, Patrick McHardy wrote: > > Luke Kenneth Casson Leighton wrote: > > >decided to put this into a separate module. based on ipt_owner.c. > > >does full program's pathname. like ipt_owner, only suitable for > > >outgoing connections. > > > > I agree that it would be useful to match the full path, but > > the patch is broken, as are the owner match's pid-, sid- and > > command-matching options. You can't grab files->file_lock > > outside of process context. thing is, you see, i know just enough to be dangerous. using files->file_lock a) seems to work b) is accepted code in the kernel. if someone else has the experience and knowledge to fix ipt_owner.c i'll quite happily cut/paste that instead - once it's fixed. in the meantime...