Re: [RFC][PATCH] IP address restricting cgroup subsystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On śro, sty 07, 2009 at 02:01:10 +0800, Li Zefan wrote:> CC: netdev@xxxxxxxxxxxxxxx> > 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 policethat in userspace (simply don't write anything to the file twice).
However, I think that the restriction should be inherited, so that ifCG1 is bound to e.g. 10.0.0.1, CG1/CG2 must be bound to the sameaddress. But what would I do then with descendant cgroups? Leave them asis (breaking the inheritance)? Find them all and change their boundaddress behind their back (do we have an API for that?)?
I guess I have the same problem right now, anyway (only once instead ofmultiple times), so I'd really appreciate your input on this.
Best regards, Grzegorz Nosek_______________________________________________Containers mailing listContainers@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx://lists.linux-foundation.org/mailman/listinfo/containers


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux