[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <711567.2389.qm@web36603.mail.mud.yahoo.com>
Date: Sun, 2 Sep 2007 16:30:44 -0700 (PDT)
From: Casey Schaufler <casey@...aufler-ca.com>
To: Shahbaz Khan <shaz.linux@...il.com>,
linux-kernel <linux-kernel@...r.kernel.org>, selinux@...o.nsa.gov
Subject: Re: Get source and destination info
--- Shahbaz Khan <shaz.linux@...il.com> wrote:
> Hi,
>
> I am trying to figure out what part in the kernel code is the point
> from where I can get source and destination ip-address, port, security
> labels (selinux etc) from a packet before I export it to application
> space for my needs. Any hints?
Look into the netlabel and xfrm code. In Smack it gets dealt with
in smack_lsm.c, but Smack only uses netlabel. SELinux spreads the
handling into a number of files, including hooks.c, netlabel.c, xfrm.c,
and ss/services.c.
Casey Schaufler
casey@...aufler-ca.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists