mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
security: rename ptrace_may_access => ptrace_access_check
The ->ptrace_may_access() methods are named confusingly - the real ptrace_may_access() returns a bool, while these security checks have a retval convention. Rename it to ptrace_access_check, to reduce the confusion factor. [ Impact: cleanup, no code changed ] Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
parent
86abcf9ceb
commit
9e48858f7d
7 changed files with 20 additions and 20 deletions
|
@ -124,9 +124,9 @@ int register_security(struct security_operations *ops)
|
|||
|
||||
/* Security operations */
|
||||
|
||||
int security_ptrace_may_access(struct task_struct *child, unsigned int mode)
|
||||
int security_ptrace_access_check(struct task_struct *child, unsigned int mode)
|
||||
{
|
||||
return security_ops->ptrace_may_access(child, mode);
|
||||
return security_ops->ptrace_access_check(child, mode);
|
||||
}
|
||||
|
||||
int security_ptrace_traceme(struct task_struct *parent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue