Quoting Oren Laadan (orenl@xxxxxxxxxxx): > > 4. Add a new field to the struct ckpt_obj which lets us store > > the objref for the string pointer in the ckpt_obj for the void*. > > Can you elaborate on what this entails ? > > E.g., do you want to be able to store an arbitrary data field for > an object, and add interface to set and get it ? (If so, what is > the proposed api ?) Well we could do it either way - just make it a typeless field that anyone coudl use as a sideband, or make it a signed int only meant to be a link to another objref. Don't much care about the API, but one way it could be used in checkpoint_security() would be: objref = ckpt_obj_lookup_add(ctx, security, CKPT_OBJ_VOIDSEC, &new); if (!new) return ckpt_obj_getlink(ctx, objref); /* ... get the string context from the lsm and construct * the struct ckpt_lsm_string */ construct_lsm_string(ctx, &l, security, CKPT_SECTYPE_FILE); linkref = checkpoint_obj(ctx, l, CKPT_OBJ_SEC); ckpt_obj_setlink(ctx, objref, linkref); return linkref; But really, the only point of doing this is so that we can use checkpoint_obj() instead of doing h = ckpt_hdr_get_type(ctx, sizeof(*h), CKPT_HDR_SEC); ckpt_write_obj(ctx, &h->h); ckpt_hdr_put(ctx, h); ckpt_write_string(ctx, context_string, strlen(context_string)+1); -serge _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers