netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Glauco Junquera <glaucoaok@gmail.com>
To: Patrick McHardy <kaber@trash.net>
Cc: netfilter-devel <netfilter-devel@vger.kernel.org>
Subject: Re: Filter input traffic by uid
Date: Wed, 26 Jan 2011 07:52:45 -0300	[thread overview]
Message-ID: <AANLkTinCsGe1Ly_q6+Acq81CA41BY-bEJr-VMknSGK+7@mail.gmail.com> (raw)
In-Reply-To: <4D3ED8CD.9040902@trash.net>

Thanks Patrick!
I gave a quick look in the patches and I think they will help me a lot.

On Tue, Jan 25, 2011 at 11:06 AM, Patrick McHardy <kaber@trash.net> wrote:
> On 25.01.2011 13:04, Glauco Junquera wrote:
>> Hi All,
>>
>> Iptables can filter output traffic by uid, for example iptables -A
>> OUTPUT -m owner --uid-owner 100 -p udp -j DROP.
>> I need to implement the same for input traffic. Anyone have any idea
>> of how can i do it (where i must start)? I am new to netfilter
>> development i tried some simple modifications on code with no success.
>> I would really appreciate any kind of help.
>
> I've added socket layer hooks a couple of years ago for that
> purpose, but we've never merged it. James Morris based some
> work on them, I think this should be the latest version:
>
> http://people.redhat.com/jmorris/selinux/skfilter/kernel/
>

      reply	other threads:[~2011-01-26 10:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-25 12:04 Filter input traffic by uid Glauco Junquera
2011-01-25 14:06 ` Patrick McHardy
2011-01-26 10:52   ` Glauco Junquera [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTinCsGe1Ly_q6+Acq81CA41BY-bEJr-VMknSGK+7@mail.gmail.com \
    --to=glaucoaok@gmail.com \
    --cc=kaber@trash.net \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).