Re: kern.randompid
From: Kris Kennaway (kris@obsecurity.org)
Date: 07/12/01
- Next message: Ryan: "Re: FreeBSD 4.3 local root PREVENTIONS"
- Previous message: Fernando Gleiser: "RE: FreeBSD 4.3 local root PREVENTIONS"
- In reply to: rich@rdrose.org: "Re: kern.randompid"
- Next in thread: alexus: "sysctl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 12 Jul 2001 12:51:18 -0700 From: Kris Kennaway <kris@obsecurity.org> To: rich@rdrose.org
On Thu, Jul 12, 2001 at 08:24:28PM +0100, rich@rdrose.org wrote:
> On Thu, 12 Jul 2001, Peter Pentchev wrote:
> > The kern.randompid sysctl is not a boolean flag, but an estimate
> > of the random value that will be added to each newly created pid.
>
> Oh. That would make much more sense as to why it's not working. Having
> been using OpenBSD though (where the pids can be anything between about 30
> and 32760), just adding a random amount between 1 and kern.randompid seems
> not very random really. Please do correct me if this is wrong.
It's a slight generalization of the algorithm which OpenBSD use (they
use a hard-wired maximum value for the random PID skip). If you set
the sysctl to whatever value they use, it works identically.
> The comments in the code say "Using a modulus that is too big causes a LOT
> more process table scans". What is "too big"? I had a quick peer at
> kern_fork.c, and pidchecked is mentioned a lot, but nothing lept out at me
> saying "which would make <foo> too big".
I believe the comment means "the larger the number the more work the
kernel needs to do to generate each new process ID"
Kris
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message
- application/pgp-signature attachment: stored
- Next message: Ryan: "Re: FreeBSD 4.3 local root PREVENTIONS"
- Previous message: Fernando Gleiser: "RE: FreeBSD 4.3 local root PREVENTIONS"
- In reply to: rich@rdrose.org: "Re: kern.randompid"
- Next in thread: alexus: "sysctl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|