From: Patrick McHardy <kaber@trash.net>
To: Glauco Junquera <glaucoaok@gmail.com>
Cc: netfilter-devel <netfilter-devel@vger.kernel.org>
Subject: Re: Filter input traffic by uid
Date: Tue, 25 Jan 2011 15:06:05 +0100 [thread overview]
Message-ID: <4D3ED8CD.9040902@trash.net> (raw)
In-Reply-To: <AANLkTikXDsRGoV4aFDxpWzdU9Pov=_-=6dMB=cbmtpQu@mail.gmail.com>
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/
next prev parent reply other threads:[~2011-01-25 14:06 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 [this message]
2011-01-26 10:52 ` Glauco Junquera
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=4D3ED8CD.9040902@trash.net \
--to=kaber@trash.net \
--cc=glaucoaok@gmail.com \
--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).