From: "Tom Fortmann" <tfortmann@xcapesolutions.net>
To: "'Stephen Smalley'" <sds@tycho.nsa.gov>
Cc: <selinux@tycho.nsa.gov>, "'James Morris'" <jmorris@namei.org>
Subject: RE: FW: Current/Future Plans to Support Stacking LSM Modules
Date: Thu, 18 Jan 2007 11:13:51 -0600 [thread overview]
Message-ID: <00a101c73b24$069aacd0$030a0a0a@ACER> (raw)
In-Reply-To: <1169124492.22731.199.camel@moss-spartans.epoch.ncsc.mil>
Stephen,
We are currently working at the netfilter level. We have a working
netfilter module that examines packets in a NF_IP_LOCAL_IN and
NF_IP_LOCAL_OUT hook. The problem with working at this level is the
additional complexity involved with altering the data. Any change in the
application data value or length causes changes in the IP and TCP headers.
Moving up above layer 3 would eliminate these issues and simplify our
design.
It looks like the selinux_socket_sock_rcv_skb() hook may give me what I need
on the receive side - access to received data after the layers 3 processing
is complete. Can you point me to more detailed information on how this hook
works and what can and can't be done to the skb at this time? Also, is
there a similar hook on the transmit side?
Thanks again for helping me work through the learning curve of SELinux.
Thomas Fortmann
Sr. Software Engineer
Xcape Solutions, Inc.
-----Original Message-----
From: Stephen Smalley [mailto:sds@tycho.nsa.gov]
Sent: Thursday, January 18, 2007 6:48 AM
To: Tom Fortmann
Cc: selinux@tycho.nsa.gov; James Morris
Subject: RE: FW: Current/Future Plans to Support Stacking LSM Modules
On Wed, 2007-01-17 at 14:09 -0600, Tom Fortmann wrote:
> Stephen,
>
> The security measures we are trying to implement require us to actually
> inspect, and in some case modify, the application data flowing over a
socket
> connection. Our goal is to secure legacy server applications at the
socket
> layer. We have done some proof of concept work at the netfilter layer,
but
> the ultimate solution is better suited above the TCP/IP packet layer.
>
> Does SELinux provide a mechanism for us to do this, and or does it call
the
> secondary LSM hooks that provide this type of access. Specifically the
> socket_xxxx hooks?
I'm not clear as to why you can't use a netfilter module. SELinux
provides socket and network access controls through a combination of LSM
hooks and netfilter, and the SELinux SECMARK mechanism lets you label
packets using iptables and control them using policy. See
selinux_socket_sock_rcv_skb() (registered via LSM) and
selinux_ip_postroute_last() (registered via netfilter).
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2007-01-18 17:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-16 19:41 FW: Current/Future Plans to Support Stacking LSM Modules Tom Fortmann
2007-01-16 19:52 ` Stephen Smalley
2007-01-16 20:31 ` Tom Fortmann
2007-01-16 20:31 ` Casey Schaufler
2007-01-17 20:09 ` Tom Fortmann
2007-01-18 12:48 ` Stephen Smalley
2007-01-18 17:13 ` Tom Fortmann [this message]
2007-01-19 15:31 ` Stephen Smalley
2007-01-19 15:57 ` Tom Fortmann
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='00a101c73b24$069aacd0$030a0a0a@ACER' \
--to=tfortmann@xcapesolutions.net \
--cc=jmorris@namei.org \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.