security.h: fix build failure
authorAlexander Beregalov <a.beregalov@gmail.com>
Sun, 17 Aug 2008 01:34:20 +0000 (05:34 +0400)
committerJames Morris <jmorris@namei.org>
Sun, 17 Aug 2008 12:47:30 +0000 (22:47 +1000)
security.h: fix build failure

include/linux/security.h: In function 'security_ptrace_traceme':
include/linux/security.h:1760: error: 'parent' undeclared (first use in this function)

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: James Morris <jmorris@namei.org>
include/linux/security.h

index 2ee5ecf..80c4d00 100644 (file)
@@ -1755,7 +1755,7 @@ static inline int security_ptrace_may_access(struct task_struct *child,
        return cap_ptrace_may_access(child, mode);
 }
 
-static inline int security_ptrace_traceme(struct task_struct *child)
+static inline int security_ptrace_traceme(struct task_struct *parent)
 {
        return cap_ptrace_traceme(parent);
 }