aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/ibcs2
diff options
context:
space:
mode:
authorMarko Zec <zec@FreeBSD.org>2009-05-08 14:11:06 +0000
committerMarko Zec <zec@FreeBSD.org>2009-05-08 14:11:06 +0000
commit29b02909eb4d38a8803d0e125285c19c92e34da5 (patch)
tree070fe9c96176ed914dfefc12a45fea29b98c4122 /sys/i386/ibcs2
parentfcec7b25b83cce28458a932d1302235b13cf459e (diff)
downloadsrc-29b02909eb4d38a8803d0e125285c19c92e34da5.tar.gz
src-29b02909eb4d38a8803d0e125285c19c92e34da5.zip
Introduce a new virtualization container, provisionally named vprocg, to hold
virtualized instances of hostname and domainname, as well as a new top-level virtualization struct vimage, which holds pointers to struct vnet and struct vprocg. Struct vprocg is likely to become replaced in the near future with a new jail management API import. As a consequence of this change, change struct ucred to point to a struct vimage, instead of directly pointing to a vnet. Merge vnet / vimage / ucred refcounting infrastructure from p4 / vimage branch. Permit kldload / kldunload operations to be executed only from the default vimage context. This change should have no functional impact on nooptions VIMAGE kernel builds. Reviewed by: bz Approved by: julian (mentor)
Notes
Notes: svn path=/head/; revision=191915
Diffstat (limited to 'sys/i386/ibcs2')
-rw-r--r--sys/i386/ibcs2/ibcs2_socksys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/ibcs2/ibcs2_socksys.c b/sys/i386/ibcs2/ibcs2_socksys.c
index f4eb97cee94e..2dba77d17c51 100644
--- a/sys/i386/ibcs2/ibcs2_socksys.c
+++ b/sys/i386/ibcs2/ibcs2_socksys.c
@@ -174,6 +174,7 @@ ibcs2_setipdomainname(td, uap)
struct thread *td;
struct setipdomainname_args *uap;
{
+ INIT_VPROCG(TD_TO_VPROCG(td));
char hname[MAXHOSTNAMELEN], *ptr;
int error, sctl[2], hlen;