Linux Container Development
 help / color / mirror / Atom feed
From: Benjamin Thery <benjamin.thery-6ktuUTfB/bM@public.gmane.org>
To: dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org
Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org
Subject: Re: [RFC][patch 0/3] Network container subsystem - bind filtering
Date: Wed, 05 Sep 2007 16:05:22 +0200	[thread overview]
Message-ID: <46DEB7A2.7020700@bull.net> (raw)
In-Reply-To: <20070904170022.964253374-lUQnSZrVijcklpeYT4thRqpRWpusSO0yQ3R/GR7Q8HurIzol8Bc5pA@public.gmane.org>

The patchset looks fine to me.
This looks like a nice and simple way to obtain basic IP isolation.

Benjamin

dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org wrote:
> Paul Menage mentionned, a few weeks ago, he wanted a bind filtering 
> for containers. Here it is  :) 
> 
> The following patches are a proposition to bring IP isolation to a container.
> 
> After looking more closely at the code I found that security hooks are
> at the right place to catch socket calls. The IP isolation relies on the
> security hooks and that has the advantage of not having the kernel code modified,
> (expect container.h and makefile/kconfig), the patchset provide just a new 
> file container_network.c
> 
> Roughly, a container has a subsystem for the network (only ipv4). 
> This subsystem contains the list of the addresses allowed to be used by the 
> container. If a container tries to bind to an address not contained into
> this list, the bind will fail with EPERM. Of course the bind is allowed to
> INADDR_ANY.
> 
> If this approach is ok for everyone, I can extend the bind filtering to
> consolidate the IP isolation.
> 
> Regards.
> 


-- 
B e n j a m i n   T h e r y  - BULL/DT/Open Software R&D

    http://www.bull.com

  parent reply	other threads:[~2007-09-05 14:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-04 17:00 [RFC][patch 0/3] Network container subsystem - bind filtering dlezcano-NmTC/0ZBporQT0dZR+AlfA
2007-09-04 17:00 ` [RFC][patch 1/3] network container subsystem dlezcano-NmTC/0ZBporQT0dZR+AlfA
     [not found]   ` <20070904171525.771956554-lUQnSZrVijcklpeYT4thRqpRWpusSO0yQ3R/GR7Q8HurIzol8Bc5pA@public.gmane.org>
2007-09-05 11:50     ` Benjamin Thery
     [not found]       ` <46DE97F5.3090609-6ktuUTfB/bM@public.gmane.org>
2007-09-05 12:43         ` Daniel Lezcano
2007-09-05 15:49     ` Serge E. Hallyn
2007-09-04 17:00 ` [RFC][patch 2/3] network security hooks dlezcano-NmTC/0ZBporQT0dZR+AlfA
     [not found]   ` <20070904171527.201921132-lUQnSZrVijcklpeYT4thRqpRWpusSO0yQ3R/GR7Q8HurIzol8Bc5pA@public.gmane.org>
2007-09-05 16:04     ` Serge E. Hallyn
2007-09-04 17:00 ` [RFC][patch 3/3] activate filtering for the bind dlezcano-NmTC/0ZBporQT0dZR+AlfA
     [not found]   ` <20070904171528.704108193-lUQnSZrVijcklpeYT4thRqpRWpusSO0yQ3R/GR7Q8HurIzol8Bc5pA@public.gmane.org>
2007-09-05 16:18     ` Serge E. Hallyn
     [not found]       ` <20070905161848.GN1403-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2007-09-05 16:38         ` Daniel Lezcano
     [not found]           ` <46DEDBA1.9010706-juSfH4iHXoxBDgjK7y7TUQ@public.gmane.org>
2007-09-10 13:23             ` Serge E. Hallyn
     [not found]               ` <20070910132330.GB9565-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2007-09-10 13:52                 ` Daniel Lezcano
     [not found]                   ` <46E54C11.1050403-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2007-09-10 15:46                     ` Serge E. Hallyn
     [not found]                       ` <20070910154630.GA3905-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2007-09-10 17:49                         ` [Devel] " Paul Menage
     [not found]                           ` <6599ad830709101049g5ea45749k66e362326264b4b0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-09-10 18:11                             ` Serge E. Hallyn
     [not found]                               ` <20070910181131.GB31638-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2007-09-10 18:15                                 ` Paul Menage
     [not found] ` <20070904170022.964253374-lUQnSZrVijcklpeYT4thRqpRWpusSO0yQ3R/GR7Q8HurIzol8Bc5pA@public.gmane.org>
2007-09-05 14:05   ` Benjamin Thery [this message]
2007-09-05 15:37   ` [RFC][patch 0/3] Network container subsystem - bind filtering Serge E. Hallyn
     [not found]     ` <20070905153741.GK1403-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2007-09-05 15:41       ` Daniel Lezcano

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=46DEB7A2.7020700@bull.net \
    --to=benjamin.thery-6ktuutfb/bm@public.gmane.org \
    --cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
    --cc=dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.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