Subject: Re: privacy [was: Re: kern.showallprocs implementation]
To: Elad Efrat <elad@NetBSD.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-kern
Date: 08/31/2005 14:39:44
On Wed, Aug 31, 2005 at 07:20:10AM +0300, Elad Efrat wrote:

> Simon Burge wrote:
> 
> > I wonder if this means that the correct behavior for
> > "kill(<other-users-process-id>, sig)" with this knob disabled is to
> > return ESRCH or EPERM?
> 
> Ideally, we could get away with ESRCH. You can always write a program
> that will spin on trying to attach to a specific PID, so it doesn't
> really matter. We should make sure that determining what PIDs are
> running is as far as someone can get.

The current behaviour is to return EPERM.  It sounds like from the rest
of your message you meant that instead of ESRCH, or did I misunderstand
you?

Simon.
--
Simon Burge                                   <simonb@wasabisystems.com>
NetBSD Development, Support and Service:   http://www.wasabisystems.com/