Re: ptrace(2) errnos

2019-11-21 Thread Mark Kettenis
> Date: Wed, 20 Nov 2019 13:49:33 +0100 > From: Martin Pieuchot > > Two fixes to reduce difference with other BSDs and make NetBSD's > t_ptrace.c regress pass: > > - Return EBUSY when calling PT_TRACE_ME more than once, both FreeBSD and > NetBSD do that. fine > - Return EPERM instead of EINV

Re: ptrace(2) errnos

2019-11-20 Thread Theo de Raadt
sure Martin Pieuchot wrote: > Two fixes to reduce difference with other BSDs and make NetBSD's > t_ptrace.c regress pass: > > - Return EBUSY when calling PT_TRACE_ME more than once, both FreeBSD and > NetBSD do that. > > - Return EPERM instead of EINVAL when trying to trace a parent, this is

Re: ptrace(2) errnos

2019-11-20 Thread Alexander Bluhm
On Wed, Nov 20, 2019 at 01:49:33PM +0100, Martin Pieuchot wrote: > Two fixes to reduce difference with other BSDs and make NetBSD's > t_ptrace.c regress pass: > > - Return EBUSY when calling PT_TRACE_ME more than once, both FreeBSD and > NetBSD do that. > > - Return EPERM instead of EINVAL when t

ptrace(2) errnos

2019-11-20 Thread Martin Pieuchot
Two fixes to reduce difference with other BSDs and make NetBSD's t_ptrace.c regress pass: - Return EBUSY when calling PT_TRACE_ME more than once, both FreeBSD and NetBSD do that. - Return EPERM instead of EINVAL when trying to trace a parent, this is what NetBSD does. Alternatively I could k