1231
1232 (void) adt_end_session(ah);
1233 }
1234
1235 /*
1236 * The main routine for the door server that deals with zone state transitions.
1237 */
1238 /* ARGSUSED */
1239 static void
1240 server(void *cookie, char *args, size_t alen, door_desc_t *dp,
1241 uint_t n_desc)
1242 {
1243 ucred_t *uc = NULL;
1244 const priv_set_t *eset;
1245
1246 zone_state_t zstate;
1247 zone_cmd_t cmd;
1248 boolean_t debug;
1249 zone_cmd_arg_t *zargp;
1250
1251 boolean_t kernelcall;
1252
1253 int rval = -1;
1254 uint64_t uniqid;
1255 zoneid_t zoneid = -1;
1256 zlog_t zlog;
1257 zlog_t *zlogp;
1258 zone_cmd_rval_t *rvalp;
1259 size_t rlen = getpagesize(); /* conservative */
1260 fs_callback_t cb;
1261 brand_handle_t bh;
1262
1263 /* LINTED E_BAD_PTR_CAST_ALIGN */
1264 zargp = (zone_cmd_arg_t *)args;
1265
1266 /*
1267 * When we get the door unref message, we've fdetach'd the door, and
1268 * it is time for us to shut down zoneadmd.
1269 */
1270 if (zargp == DOOR_UNREF_DATA) {
1271 /*
|
1231
1232 (void) adt_end_session(ah);
1233 }
1234
1235 /*
1236 * The main routine for the door server that deals with zone state transitions.
1237 */
1238 /* ARGSUSED */
1239 static void
1240 server(void *cookie, char *args, size_t alen, door_desc_t *dp,
1241 uint_t n_desc)
1242 {
1243 ucred_t *uc = NULL;
1244 const priv_set_t *eset;
1245
1246 zone_state_t zstate;
1247 zone_cmd_t cmd;
1248 boolean_t debug;
1249 zone_cmd_arg_t *zargp;
1250
1251 boolean_t kernelcall = B_TRUE;
1252
1253 int rval = -1;
1254 uint64_t uniqid;
1255 zoneid_t zoneid = -1;
1256 zlog_t zlog;
1257 zlog_t *zlogp;
1258 zone_cmd_rval_t *rvalp;
1259 size_t rlen = getpagesize(); /* conservative */
1260 fs_callback_t cb;
1261 brand_handle_t bh;
1262
1263 /* LINTED E_BAD_PTR_CAST_ALIGN */
1264 zargp = (zone_cmd_arg_t *)args;
1265
1266 /*
1267 * When we get the door unref message, we've fdetach'd the door, and
1268 * it is time for us to shut down zoneadmd.
1269 */
1270 if (zargp == DOOR_UNREF_DATA) {
1271 /*
|