From 01b4bc23f86776ba5362351a4ce0e14edecbd365 Mon Sep 17 00:00:00 2001 From: jv227347 Date: Wed, 24 Dec 2008 11:45:18 -0800 Subject: 6770468 can make exclusive-stack zones with invalid physical nwif names after putback of CR 5073914 --- usr/src/cmd/zonecfg/zonecfg.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'usr/src') diff --git a/usr/src/cmd/zonecfg/zonecfg.c b/usr/src/cmd/zonecfg/zonecfg.c index 14cccc5b1a..eb572db380 100644 --- a/usr/src/cmd/zonecfg/zonecfg.c +++ b/usr/src/cmd/zonecfg/zonecfg.c @@ -5532,9 +5532,16 @@ verify_func(cmd_t *cmd) * and may include a default router, while * an exclusive IP must have neither an address * nor a default router. + * The physical interface name must be valid in all cases. */ check_reqd_prop(nwiftab.zone_nwif_physical, RT_NET, PT_PHYSICAL, &ret_val); + if (validate_net_physical_syntax(nwiftab.zone_nwif_physical) != + Z_OK) { + saw_error = B_TRUE; + if (ret_val == Z_OK) + ret_val = Z_INVAL; + } switch (iptype) { case ZS_SHARED: -- cgit v1.2.3