Re: PATCH: Pusedo-random pid generation (not really serious)

From: Lars Marowsky-Bree (lmb@suse.de)
Date: Wed Nov 13 2002 - 10:44:44 EST


On 2002-11-13T23:30:36,
   Beau Kuiper <rugger@arach.net.au> said:

> This patch isn't designed to add security and/or unpredictability into pid
> creation. It simply is trying to avoid using the same pids all the time,
> which confused programs that used lock files.

Those programs are royally broken, they at least need to verify that the PID
stored actually refers to itself.

Be happy that you find out about such broken behaviour immediately and fix the
programs.

> The linear random number generator here has a period of 2^31, and statisticly,
> its pretty ok.

> Since I know that this will NEVER make it into a standard kernel, I simply
> post it for people who might find it useful. People like me, who use Kmail
> and are not very particular about shutting down carefully 8-)

Fix kmail.

Sincerely,
    Lars Marowsky-Brée <lmb@suse.de>

-- 
Principal Squirrel 
SuSE Labs - Research & Development, SuSE Linux AG
  
"If anything can go wrong, it will." "Chance favors the prepared (mind)."
  -- Capt. Edward A. Murphy            -- Louis Pasteur
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:29 EST