Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Mar 1997 09:50:38 +0100
From:      j@uriah.heep.sax.de (J Wunsch)
To:        mark@seeware.DIALix.oz.au (Mark Hannon)
Cc:        freebsd-current@freebsd.org
Subject:   Re: 2.2-RELEASE, dtmail stopped working
Message-ID:  <19970323095038.PT14623@uriah.heep.sax.de>
In-Reply-To: <199703230114.MAA00606@putte.seeware.DIALix.oz.au>; from Mark Hannon on Mar 23, 1997 12:14:35 %2B1100
References:  <199703230114.MAA00606@putte.seeware.DIALix.oz.au>

next in thread | previous in thread | raw e-mail | index | archive | help
As Mark Hannon wrote:

> I can't however seem to get a trace going now.  Executing
> 	ktrace -i -p 264
> From an su'd shell (where 264 is the pid of my normal tcsh) doesn't
> seem to give much joy.

You probably need to disable this code in sys/kern/kern_exec.c
temporarily:

                /*
                 * Turn off syscall tracing for set-id programs, except for
                 * root.
                 */
                if (p->p_tracep && suser(p->p_ucred, &p->p_acflag)) {
                        p->p_traceflag = 0;
                        vrele(p->p_tracep);
                        p->p_tracep = NULL;
                }


-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970323095038.PT14623>