Re: A few questions...
- From: Darren Pilgrim <freebsd@xxxxxxxxxxxx>
- Date: Mon, 23 Jul 2007 20:53:31 -0700
Daniel Molina Wegener wrote:
Hello,
I need information about few things, I hope someone can help
me and thanks in advance.
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.
Root is always UID 0. Checking UID == 0 is the common practice for determining if the effective UID has root priveleges.
b) Can normal users look for system processes or kernel threads?
Yes, depending on the value of the security.bsd.see_other_uids sysctl. If security.bsd.see_other_uids=0, non-root users can only see their own processes.
c) Can root look for system processes or kernel threads?
Yes, regardless of the value of security.bsd.see_other_uids.
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: A few questions...
- From: Ben Kaduk
- Re: A few questions...
- References:
- A few questions...
- From: Daniel Molina Wegener
- A few questions...
- Prev by Date: A few questions...
- Next by Date: alias netmask bug?
- Previous by thread: A few questions...
- Next by thread: Re: A few questions...
- Index(es):
Relevant Pages
|
|