Date: Tue, 24 Jul 2007 11:43:55 -0700 From: John-Mark Gurney <gurney_j@resnet.uoregon.edu> To: Daniel Molina Wegener <dmw@unete.cl> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: A few questions... Message-ID: <20070724184355.GH99491@funkthat.com> In-Reply-To: <200707232052.58485.dmw@unete.cl> References: <200707232052.58485.dmw@unete.cl>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/conf.h>
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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070724184355.GH99491>
