From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: problem getting uid in nfqueue Date: Tue, 22 Jun 2010 10:18:20 +0200 Message-ID: <4C2071CC.60300@trash.net> References: <1624629744.165291276781877065.JavaMail.root@zimbra6-e1.priv.proxad.net> <4C1FD0EC.6000302@free.fr> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Jan Engelhardt Cc: Beluc , netfilter@vger.kernel.org Jan Engelhardt wrote: > On Monday 2010-06-21 22:51, Beluc wrote: > > >> no idea ? maybe i didn't explain very well :/ >> >> i saw that when using LOG target in OUTPUT policy, there is the user's uid who >> send packet. >> > > That is not the user's uid, but the uid of the socket's creator. Filtering based on UID is best done using the owner match. nfnetlink_queue currently doesn't supply the UID/GID, but it could be added easily.