CRED: Wrap current->cred and a few other accessors
Wrap current->cred and a few other accessors to hide their actual implementation. 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
f1752eec61
commit
86a264abe5
@@ -641,7 +641,7 @@ int cap_task_setnice (struct task_struct *p, int nice)
|
||||
int cap_task_prctl(int option, unsigned long arg2, unsigned long arg3,
|
||||
unsigned long arg4, unsigned long arg5, long *rc_p)
|
||||
{
|
||||
struct cred *cred = current->cred;
|
||||
struct cred *cred = current_cred();
|
||||
long error = 0;
|
||||
|
||||
switch (option) {
|
||||
|
||||
Reference in New Issue
Block a user