]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
o Fix race condition caused by doing ptrace() for permission
authormarcel <marcel@FreeBSD.org>
Sun, 19 May 2002 19:35:36 +0000 (19:35 +0000)
committermarcel <marcel@FreeBSD.org>
Sun, 19 May 2002 19:35:36 +0000 (19:35 +0000)
commit982963acb935ae0389976769dc093c1c286a132e
treea07cc756121cb6eeb364fcc14fd0a1a0e037c41f
parentb834e5849a034f05db1e154792fe387afa5771ac
o  Fix race condition caused by doing ptrace() for permission
   checking, followed by a lookup of the process. Do not call
   ptrace() for permission checking, but do it inline.
   Spotted by: rwatson

o  While here, copy-in arguments before we lock. This fixes
   a possible permanent lock.

Reviewed by: rwatson
sys/i386/linux/linux_ptrace.c