Re: random PID generation

2001-02-27 Thread Heusden, Folkert van
> I have already written a 2.2 implementation which does not suffer from these > problems. Yes, someone pointed me at it. To be honest (and with all due respect): I found it to be a bit over-complicated. Like; in my opinion it's only usefull to have absolute random chosen PIDs, or not. Not all t

Re: random PID generation

2001-02-23 Thread Richard B. Johnson
On Fri, 23 Feb 2001, Sean Hunter wrote: > I have already written a 2.2 implementation which does not suffer from these > problems. It was rejected because Alan Cox (and others) felt it only provided > security through obscurity. > > Sean The following is a simple random generator that will nev

Re: random PID generation

2001-02-23 Thread Sean Hunter
I have already written a 2.2 implementation which does not suffer from these problems. It was rejected because Alan Cox (and others) felt it only provided security through obscurity. Sean On Fri, Feb 23, 2001 at 11:40:37PM +0800, Matt Johnston wrote: > OpenBSD has a working implementation, migh

Re: random PID generation

2001-02-23 Thread Matt Johnston
OpenBSD has a working implementation, might be worth looking at??? Cheers, Matt Johnston. On Fri, 23 Feb 2001 23:34, Heusden, Folkert van wrote: > >> My code runs trough the whole task_list to see if a chosen pid is > >> already > >> > >> in use or not. > > > > But it doesn't check for a recentl

Re: random PID generation

2001-02-23 Thread Heusden, Folkert van
>> My code runs trough the whole task_list to see if a chosen pid is already >> in use or not. > But it doesn't check for a recently used PID. Lets say your system is > exhausting 1000 PIDs/second, and that there is a window of 20ms between you > determining which PID to send to, and the recip

Re: random PID generation

2001-02-23 Thread bert hubert
On Fri, Feb 23, 2001 at 02:20:27PM +0100, Heusden, Folkert van wrote: > > With truly random PIDs, there is a much larger chance of a new process > > sitting on a recently used PID. > > My code runs trough the whole task_list to see if a chosen pid is already > in use or not. But it doesn't ch

Re: random PID generation

2001-02-23 Thread Heusden, Folkert van
>> I wrote a patch against 2.2.18 and 2.4.1 to have the kernel generate >> random PIDs. You can find it at http://vanheusden.com/Linux/security.php3 >> (amongst other patches). Beware: pretty much experimental and likely to >> make your linux-pc perform like a win95 platform. > Well - I'm not

Re: random PID generation

2001-02-22 Thread H. Peter Anvin
Followup to: <[EMAIL PROTECTED]> By author:bert hubert <[EMAIL PROTECTED]> In newsgroup: linux.dev.kernel > > Well - I'm not sure that this is a good idea. When PIDs increase > monotonically, chances are very small that the race condition implicit in > sending any signal to a process results

Re: random PID generation

2001-02-22 Thread bert hubert
On Thu, Feb 22, 2001 at 04:35:35PM +0100, Heusden, Folkert van wrote: > Hi, Hi Folkert! > I wrote a patch against 2.2.18 and 2.4.1 to have the kernel generate > random PIDs. You can find it at http://vanheusden.com/Linux/security.php3 > (amongst other patches). Beware: pretty much experimental a

random PID generation

2001-02-22 Thread Heusden, Folkert van
Hi, I wrote a patch against 2.2.18 and 2.4.1 to have the kernel generate random PIDs. You can find it at http://vanheusden.com/Linux/security.php3 (amongst other patches). Beware: pretty much experimental and likely to make your linux-pc perform like a win95 platform. Greetings, Folkert van He