patch-2.3.4 linux/arch/alpha/kernel/ptrace.c
Next file: linux/arch/arm/kernel/ptrace.c
Previous file: linux/arch/alpha/kernel/process.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Sat May 22 12:42:04 1999
- Orig file:
v2.3.3/linux/arch/alpha/kernel/ptrace.c
- Orig date:
Tue Dec 29 16:17:00 1998
diff -u --recursive --new-file v2.3.3/linux/arch/alpha/kernel/ptrace.c linux/arch/alpha/kernel/ptrace.c
@@ -506,7 +506,8 @@
(current->uid != child->uid) ||
(current->gid != child->egid) ||
(current->gid != child->sgid) ||
- (current->gid != child->gid))
+ (current->gid != child->gid) ||
+ (!cap_issubset(child->cap_permitted, current->cap_permitted)))
&& !capable(CAP_SYS_PTRACE))
goto out;
/* the same process cannot be attached many times */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)