Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Oct 2009 21:32:49 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Nate Eldredge <nate@thatsmathematics.com>
Cc:        freebsd-hackers@freebsd.org, Mel Flynn <mel.flynn+fbsd.hackers@mailing.thruhere.net>
Subject:   Re: Running a program through gdb without "interfering"
Message-ID:  <86ocogs6qm.fsf@ds4.des.no>
In-Reply-To: <Pine.GSO.4.64.0910091028530.5432@zeno.ucsd.edu> (Nate Eldredge's message of "Fri, 9 Oct 2009 10:30:44 -0700 (PDT)")
References:  <200910090015.24175.mel.flynn%2Bfbsd.hackers@mailing.thruhere.net> <86skds7vqi.fsf@ds4.des.no> <200910091650.04231.mel.flynn%2Bfbsd.hackers@mailing.thruhere.net> <Pine.GSO.4.64.0910091028530.5432@zeno.ucsd.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Nate Eldredge <nate@thatsmathematics.com> writes:
> This won't work.  You can't debug setuid programs (for reasons which
> should be obvious).

Ah, true, but easily fixable.  Add a sysctl for it (just copy-paste the
declaration for kern.sugid_coredump and change the name) and check its
value in p_candebug() (hint: "if (credentialchanged)").

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



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