[patch-bugfix] Re: 2.2.4 breaks strace -f

Tigran Aivazian (tigran@aivazian.demon.co.uk)
Wed, 24 Mar 1999 21:37:12 +0000 (GMT)


Hi,

The patch below fixes the PTRACE_ATTACH problem.
I think the "is a subset" should sound as "is not a subset".

Regards,
Tigran.

--- ptrace.c.0 Wed Mar 24 21:03:52 1999
+++ ptrace.c Wed Mar 24 21:23:33 1999
@@ -386,7 +386,7 @@
(current->uid != child->uid) ||
(current->gid != child->egid) ||
(current->gid != child->sgid) ||
- (cap_issubset(child->cap_permitted, current->cap_permitted)) ||
+ (!cap_issubset(child->cap_permitted, current->cap_permitted)) ||
(current->gid != child->gid)) && !capable(CAP_SYS_PTRACE))
goto out;
/* the same process cannot be attached many times */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/