CRED: Use correct task_struct members in cred.h comments
PATCH 1/1 CRED: Use correct task_struct members in cred.h comments
From: Marc Dionne <[email protected]>
Adjust comments in linux/cred.h - use the correct names for the struct cred pointers in the task_struct structure.
Signed-off-by Marc Dionne <[email protected]>
Signed-off-by David Howells <[email protected]>
---
include/linux/cred.h | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
include/linux/cred.h +6 -6
@@ -101,14 +101,14 @@ struct thread_group_cred {* Note that some members of this structure belong to both categories - the * LSM security pointer for instance. * -* A task has two security pointers. task->sec points to the objective context -* that defines that task's actual details. The objective part of this context -* is used whenever that task is acted upon. +* A task has two security pointers. task->real_cred points to the objective +* context that defines that task's actual details. The objective part of this +* context is used whenever that task is acted upon. * -* task->act_as points to the subjective context that defines the details of -* how that task is going to act upon another object. This may be overridden +* task->cred points to the subjective context that defines the details of how +* that task is going to act upon another object. This may be overridden * temporarily to point to another security context, but normally points to the -* same context as task->sec. +* same context as task->real_cred. */ struct cred {atomic_t usage;
Quoted 7 lines · David Howells
From: Marc Dionne <[email protected]>
Adjust comments in
linux/cred.h- use the correct names for the struct cred pointers in thetask_structstructure.Signed-off-by Marc Dionne <[email protected]>Signed-off-by David Howells <[email protected]>
Applied to:git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next-creds-subsys
Signature · 2 lines
James Morris <[email protected]>