From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 24 18:43:57 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C952C16A41B for ; Tue, 24 Jul 2007 18:43:57 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id 9F5E213C46B for ; Tue, 24 Jul 2007 18:43:57 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (m8d7kbkhzlx6jgic@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id l6OIhuw9040331; Tue, 24 Jul 2007 11:43:56 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id l6OIhuGq040330; Tue, 24 Jul 2007 11:43:56 -0700 (PDT) (envelope-from jmg) Date: Tue, 24 Jul 2007 11:43:55 -0700 From: John-Mark Gurney To: Daniel Molina Wegener Message-ID: <20070724184355.GH99491@funkthat.com> Mail-Followup-To: Daniel Molina Wegener , FreeBSD Hackers References: <200707232052.58485.dmw@unete.cl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200707232052.58485.dmw@unete.cl> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: FreeBSD Hackers Subject: Re: A few questions... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2007 18:43:57 -0000 Daniel Molina Wegener wrote this message on Mon, Jul 23, 2007 at 20:52 -0400: > a) Is there any function or variable that tells me which is the > root user UID in the system, or root always have 0 and it's > an "elegant" option to compare the variables or structure > members against zero. #include uid == UID_ROOT > b) Can normal users look for system processes or kernel threads? Yes, ps does this... > c) Can root look for system processes or kernel threads? Yes, ps does this... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."