All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bill Laut <wlsel@verizon.net>
To: Russell Coker <russell@coker.com.au>, SELinux@tycho.nsa.gov
Subject: Re: SELinux, KDE, and honeypots
Date: Thu, 10 Jul 2003 04:09:12 -0400	[thread overview]
Message-ID: <200307100409.12615.wlsel@verizon.net> (raw)
In-Reply-To: <200307101220.41566.russell@coker.com.au>

On Wednesday 09 July 2003 10:20 pm, Russell Coker wrote:
> On Thu, 10 Jul 2003 04:08, Bill Laut wrote:
> >
> > Somewhat pragmatic but also personal aesthetic:  It seems to me that the
> > shortest, simplist way to implement this functionality is to patch the
> > TCP layer of the stack itself (and not NetFilter--my mistake) to divert
> > all
>
> Anything that involves significant kernel changes is unlikely to be the
> shortest simplest solution.
>

The pseudo-device driver I'm envisioning is minimally invasive to the affected 
modules for the reasons you cite below.  Everything else is done outside of 
the kernel.  However, your recommendation of libpcap is noted and will be 
seriously considered.

>
> libpcap is something that you can get going in a day and which will result
> in nothing worse than the application itself segv'ing if there's a bug. 
> Kernel code will take significantly more time to write and has
> significantly greater potential to break things if there's a bug.
>

I understand the implications you raise here.  Once upon a time, almost a 
generation ago, I used to write multi-threaded telecommunications drivers for 
the VAX/VMS Operating System.  I fully appreciate the work involved.

>
> > As for the personal aesthetic, well, it's been awhile since I had a
> > chance to do some kernel hacking, and this looked like a really cool
> > hack.  :-)
>
> There's lots of other useful kernel work that could be done if you are
> looking for kernel projects.
>

Unfortunately, as an amateur cryptology enthusiast my plate is nearly full 
with some unrelated projects I'm engaged in.  As those near completion I may 
take you up on your offer.  Hopefully by then I'll be better acquainted with 
SELinux that I could seriously offer to help you with some kernel work.

>
> > While I'm thinking about it, is it possible to configure a domain wherein
> > you can limit which ports a daemon is allowed to declare as TCP listeners
> > and/or which UDP port numbers it is allowed to create?  That would useful
> > for detecting BOs.
>
> Yes, you can already do this through the name_bind access in the tcp_socket
> and udp_socket classes.  The default is that the can_network() macro (used
> by everything that accesses the network) grants access to bind to all ports
> that are not specifically mentioned in the policy.
>

Excellent.  I'm continually impressed with the thoroughness of SELinux.  You 
folks deserve to be proud of your accomplishment.

>
> It has been suggested that we change this and only allow certain domains to
> bind to all ports.
>

That would be prudent, especially for the daemons.  


--
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.

  reply	other threads:[~2003-07-10  8:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-09  3:03 SELinux, KDE, and honeypots Bill Laut
2003-07-09  8:20 ` Tom
2003-07-09  9:48   ` Russell Coker
2003-07-09  9:26 ` Russell Coker
2003-07-09 18:08   ` Bill Laut
2003-07-10  2:20     ` Russell Coker
2003-07-10  8:09       ` Bill Laut [this message]
2003-07-09 22:41 ` Tracy R Reed
2003-07-10  7:25   ` Bill Laut
  -- strict thread matches above, loose matches on Subject: below --
2003-07-09 14:30 Joshua Brindle

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=200307100409.12615.wlsel@verizon.net \
    --to=wlsel@verizon.net \
    --cc=SELinux@tycho.nsa.gov \
    --cc=russell@coker.com.au \
    /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.