From owner-freebsd-current Thu Sep 14 3:28:38 2000 Delivered-To: freebsd-current@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 5012B37B423 for ; Thu, 14 Sep 2000 03:28:35 -0700 (PDT) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=root) by scientia.demon.co.uk with esmtp (Exim 3.16 #1) id 13ZWFD-0006PR-00; Thu, 14 Sep 2000 11:27:51 +0100 Received: (from ben@localhost) by strontium.scientia.demon.co.uk (8.9.3/8.9.3) id LAA75206; Thu, 14 Sep 2000 11:27:51 +0100 (BST) (envelope-from ben) Date: Thu, 14 Sep 2000 11:27:51 +0100 From: Ben Smithurst To: Leif Neland Cc: Paul Herman , Vivek Khera , freebsd-current@FreeBSD.ORG Subject: Re: call for testers: init securelevel patch Message-ID: <20000914112751.H77593@strontium.scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Leif Neland wrote: > How is that done? > Will gdb not attach to init, or will init not let gdb attach? The kernel won't let GDB attach. Look at the code for ptrace()... /* can't trace init when securelevel > 0 */ if (securelevel > 0 && p->p_pid == 1) return EPERM; -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message