Message105067
| Author |
belopolsky |
| Recipients |
belopolsky, flox, l0nwlf, loewis, michael.foord, orsenthil, r.david.murray, ronaldoussoren |
| Date |
2010年05月05日.18:41:29 |
| SpamBayes Score |
0.18114756 |
| Marked as misclassified |
No |
| Message-id |
<1273084891.99.0.0387150855857.issue7900@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Ronald> How did you detect that the modern getgroups implementation
Ronald> doesn't query the kernel? That would be very odd.
I have just found the source code for getgroups:
http://www.opensource.apple.com/source/Libc/Libc-594.1.4/sys/getgroups.c
As I suspected, it simply calls getgrouplist with the current user name.
From getgrouplist(3) manpage:
"""
The getgrouplist() function reads through the group file and calculates the group access list for the user specified in name.
""" |
|