Re: Why can't I ptrace init (pid == 1) ?

2001-06-20 Thread Miquel van Smoorenburg
In article <[EMAIL PROTECTED]>, Helge Hafting <[EMAIL PROTECTED]> wrote: >richard offer wrote: >> >> In arch/i386/kernel/ptrace.c there is the following code ... >> >> ret = -EPERM; >> if (pid == 1) /* you may not mess with init */ >> goto out_tsk; >>

Re: Why can't I ptrace init (pid == 1) ?

2001-06-20 Thread Helge Hafting
richard offer wrote: > > In arch/i386/kernel/ptrace.c there is the following code ... > > ret = -EPERM; > if (pid == 1) /* you may not mess with init */ > goto out_tsk; > > What is the rationale for this ? Is this a real security decision or > an implem

Why can't I ptrace init (pid == 1) ?

2001-06-19 Thread richard offer
In arch/i386/kernel/ptrace.c there is the following code ... ret = -EPERM; if (pid == 1) /* you may not mess with init */ goto out_tsk; What is the rationale for this ? Is this a real security decision or an implementation detail (bad things will happ