Quoting Dan Smith (danms@xxxxxxxxxx): > +static int cr_restore_utsns(struct cr_ctx *ctx, int ref) > +{ > + struct uts_namespace *uts; > + int ret; > + > + uts = cr_obj_get_by_ref(ctx, ref, CR_OBJ_UTSNS); > + if (uts == NULL) { > + ret = cr_read_utsns(ctx, current); > + if (ret < 0) > + return ret; > + > + return cr_obj_add_ref(ctx, current->nsproxy->uts_ns, > + ref, CR_OBJ_UTSNS, 0); > + } else if (IS_ERR(uts)) { > + cr_debug("Failed to get UTS ns from objhash"); > + return PTR_ERR(uts); > + } > + > + ret = copy_namespaces(CLONE_NEWUTS, current); > + if (ret < 0) > + return ret; > + > + put_uts_ns(current->nsproxy->uts_ns); > + get_uts_ns(uts); > + current->nsproxy->uts_ns = uts; Oh, sorry, now I see. It does seem all right, never mind... -serge _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers