mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
b6dff3ec5e
commit
f1752eec61
11 changed files with 179 additions and 83 deletions
|
@ -616,14 +616,14 @@ int security_task_create(unsigned long clone_flags)
|
|||
return security_ops->task_create(clone_flags);
|
||||
}
|
||||
|
||||
int security_task_alloc(struct task_struct *p)
|
||||
int security_cred_alloc(struct cred *cred)
|
||||
{
|
||||
return security_ops->task_alloc_security(p);
|
||||
return security_ops->cred_alloc_security(cred);
|
||||
}
|
||||
|
||||
void security_task_free(struct task_struct *p)
|
||||
void security_cred_free(struct cred *cred)
|
||||
{
|
||||
security_ops->task_free_security(p);
|
||||
security_ops->cred_free(cred);
|
||||
}
|
||||
|
||||
int security_task_setuid(uid_t id0, uid_t id1, uid_t id2, int flags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue