CRED: Detach the credentials from task_struct
Detach the credentials from task_struct, duplicating them in copy_process() and releasing them in __put_task_struct(). Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: James Morris <jmorris@namei.org> Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:

committed by
James Morris

parent
b6dff3ec5e
commit
f1752eec61
@@ -1151,7 +1151,6 @@ struct task_struct {
|
||||
struct list_head cpu_timers[3];
|
||||
|
||||
/* process credentials */
|
||||
struct cred __temp_cred __deprecated; /* temporary credentials to be removed */
|
||||
struct cred *cred; /* actual/objective task credentials */
|
||||
|
||||
char comm[TASK_COMM_LEN]; /* executable name excluding path
|
||||
|
Reference in New Issue
Block a user