summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/os/zone.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/uts/common/os/zone.c b/usr/src/uts/common/os/zone.c
index 2709591adf..af2cd869e0 100644
--- a/usr/src/uts/common/os/zone.c
+++ b/usr/src/uts/common/os/zone.c
@@ -3556,6 +3556,13 @@ zone_is_nested(const char *rootpath)
ASSERT(MUTEX_HELD(&zonehash_lock));
+ /*
+ * zone_set_root() appended '/' and '\0' at the end of rootpath
+ */
+ if ((rootpathlen <= 3) && (rootpath[0] == '/') &&
+ (rootpath[1] == '/') && (rootpath[2] == '\0'))
+ return (B_TRUE);
+
for (zone = list_head(&zone_active); zone != NULL;
zone = list_next(&zone_active, zone)) {
if (zone == global_zone)