Subject: Re: Segmentation fault
To: None <lucio@proxima.alt.za>
From: Jaromír Dolecek <dolecek@ibis.cz>
List: tech-userlevel
Date: 09/28/2000 10:57:47
Lucio De Re wrote:
> > Hmm, isn't the binary suid ? Tracing is switched off when suid
> > binary is executed for non-root.
> > 
> Correct.  How can one then establish where the problem lies?  I
> suppose I could hack the kernel to drop such restrictions, but that's
> not exactly a trivial task.
> 
> Ah, the joys of operating systems that know what's good for you!...

Heh :) This is security feature - if a process is traced, the tracing
process is able to force it to execute arbitrary code. You don't
want to allow that for suid programs.

You can ktrace it as root, provided that you change your NFS setup so that
root is not mapped to nobody.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
@@@@  Wanna a real operating system ? Go and get NetBSD, damn!  @@@@