public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Grzegorz Nosek <root-AfQBxy1nhrQ00sYp1HPQUA@public•gmane.org>
To: Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public•gmane.org>
Cc: containers-qjLDD68F18O7TbgM5vRIOg@public•gmane.org,
	netdev-u79uwXL29TY76Z2rM5mHXA@public•gmane.org
Subject: Re: [RFC][PATCH] IP address restricting cgroup subsystem
Date: Wed, 7 Jan 2009 08:38:32 +0100	[thread overview]
Message-ID: <20090107073831.GA23648@megiteam.pl> (raw)
In-Reply-To: <49644526.8030205-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>

On śro, sty 07, 2009 at 02:01:10 +0800, Li Zefan wrote:
> CC: netdev@vger•kernel.org
> 
> I'll review the cgroup part if this patch is regarded as useful.
> 
> Grzegorz Nosek wrote:
> > This is a very simple cgroup subsystem to restrict IP addresses used
> > by member processes. Currently it is limited to IPv4 only but IPv6 (or
> > other protocols) should be easy to implement.
> > 
> > IP addresses are write-once (via /cgroup/.../ipaddr.ipv4 in dotted-quad
> 
> Why they should be write-once ?

No real (technical) reason. Making it read-write would be fine with me.
I wanted to make the restriction a one-way road but I guess I can police
that in userspace (simply don't write anything to the file twice).

However, I think that the restriction should be inherited, so that if
CG1 is bound to e.g. 10.0.0.1, CG1/CG2 must be bound to the same
address. But what would I do then with descendant cgroups? Leave them as
is (breaking the inheritance)? Find them all and change their bound
address behind their back (do we have an API for that?)?

I guess I have the same problem right now, anyway (only once instead of
multiple times), so I'd really appreciate your input on this.

Best regards,
 Grzegorz Nosek
_______________________________________________
Containers mailing list
Containers@lists•linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers

  parent reply	other threads:[~2009-01-07  7:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20090106230554.GB25228@eskarina.localdomain.pl>
     [not found] ` <20090106230554.GB25228-IaEwMO9oKu/77SC2UrCW1JJg/dWx8T/9@public.gmane.org>
2009-01-07  6:01   ` [RFC][PATCH] IP address restricting cgroup subsystem Li Zefan
     [not found]     ` <49644526.8030205-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-01-07  7:38       ` Grzegorz Nosek [this message]
2009-01-07  8:36         ` Li Zefan
2009-01-07  9:16           ` Grzegorz Nosek
2009-01-07  9:33             ` Li Zefan
2009-01-07  9:37               ` Grzegorz Nosek
2009-01-09 21:38               ` [Devel] " Paul Menage
2009-01-10  4:50                 ` Li Zefan
2009-01-10 16:14                   ` Paul Menage
2009-01-12  2:20                     ` Li Zefan
2009-01-14  2:07                       ` Paul Menage
2009-01-14  2:47                         ` Li Zefan
2009-01-14  2:50                           ` Paul Menage

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=20090107073831.GA23648@megiteam.pl \
    --to=root-afqbxy1nhrq00syp1hpqua@public$(echo .)gmane.org \
    --cc=containers-qjLDD68F18O7TbgM5vRIOg@public$(echo .)gmane.org \
    --cc=lizf-BthXqXjhjHXQFUHtdCDX3A@public$(echo .)gmane.org \
    --cc=netdev-u79uwXL29TY76Z2rM5mHXA@public$(echo .)gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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