projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] m68k: restore amikbd compatibility with 2.4
[powerpc.git]
/
security
/
commoncap.c
diff --git
a/security/commoncap.c
b/security/commoncap.c
index
8a6e097
..
841eb4e
100644
(file)
--- a/
security/commoncap.c
+++ b/
security/commoncap.c
@@
-60,8
+60,8
@@
int cap_settime(struct timespec *ts, struct timezone *tz)
int cap_ptrace (struct task_struct *parent, struct task_struct *child)
{
/* Derived from arch/i386/kernel/ptrace.c:sys_ptrace. */
int cap_ptrace (struct task_struct *parent, struct task_struct *child)
{
/* Derived from arch/i386/kernel/ptrace.c:sys_ptrace. */
- if (!cap_issubset
(child->cap_permitted, cur
rent->cap_permitted) &&
- !
capable(
CAP_SYS_PTRACE))
+ if (!cap_issubset
(child->cap_permitted, pa
rent->cap_permitted) &&
+ !
__capable(parent,
CAP_SYS_PTRACE))
return -EPERM;
return 0;
}
return -EPERM;
return 0;
}