svn commit: r194251 - in head/sys: kern net sys

Jamie Gritton jamie at FreeBSD.org
Mon Jun 15 19:21:05 UTC 2009


Julian Elischer wrote:
> Jamie Gritton wrote:
>> Author: jamie
>> Date: Mon Jun 15 18:59:29 2009
>> New Revision: 194251
>> URL: http://svn.freebsd.org/changeset/base/194251
>>
>> Log:
>>   Manage vnets via the jail system.  If a jail is given the boolean
>>   parameter "vnet" when it is created, a new vnet instance will be 
>> created
>>   along with the jail.  Networks interfaces can be moved between prisons
>>   with an ioctl similar to the one that moves them between vimages.
>>   For now vnets will co-exist under both jails and vimages, but soon
>>   struct vimage will be going away.
>>     Reviewed by:    zec, julian
>>   Approved by:    bz (mentor)
>>
>> Modified:
>>   head/sys/kern/kern_jail.c
>>   head/sys/kern/kern_vimage.c
>>   head/sys/net/if.c
>>   head/sys/net/if.h
>>   head/sys/sys/jail.h
>>   head/sys/sys/priv.h
>>   head/sys/sys/sockio.h
>>   head/sys/sys/vimage.h
>>
> 
> 
> the ioctl will be in ifcofig right?
> 
> ifconfig em0 jail {Jail-ID}  ??

Right.  Perhaps "jail" and "unjail".  Some pair to move an interface
into a vnetted jail and to reclaim it from one.

- Jamie


More information about the svn-src-head mailing list