[Devel] Re: [PATCH] c/r: Save and restore task->personality (v2)

Serge E. Hallyn serue at us.ibm.com
Thu Apr 16 09:51:04 PDT 2009


Quoting Dan Smith (danms at us.ibm.com):
> This patch adds a spot in the task record to save the personality value
> of the task_struct.
> 
> It also masks out READ_IMPLIES_EXEC before starting to avoid read-only
> maps being restored as read-exec.  To avoid re-setting this flag too early,
> it also introduces a "task_ctx" object to hold information that may be
> collected when reading the task structure, but needs to be restored at a
> later time (such as after the maps are read).  Since there may be additional
> settings that need to be deferred until the end of task restore, I decided
> to add the context object and a "cleanup" function to wrap things up.
> 
> Changes in v2:
>   - Change __u64 to __u32 in the cr_task_hdr
> 
> Signed-off-by: Dan Smith <danms at us.ibm.com>

Acked-by: Serge Hallyn <serue at us.ibm.com>

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list