]> granicus.if.org Git - sudo/commit
Remove fallback to per-group lookup when matching groups in sudoers.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 25 Jul 2011 13:43:44 +0000 (09:43 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 25 Jul 2011 13:43:44 +0000 (09:43 -0400)
commite0a43ff1d7bab95e5c17e8d3ed5971be3f36bc13
tree2161d402f11cae1f1f6a75850e5800aba95b97d3
parent37ffd95ef5fa927c0c7febb9baeee1b9adaf3ecf
parent80138c88ba32a8f285f0b712f8d45738312027a2
Remove fallback to per-group lookup when matching groups in sudoers.
The sudo front-end will now use getgrouplist() to get the user's
list of groups if getgroups() fails or returns zero groups so we
always have a list of the user's groups.  For systems with
mbr_check_membership() which support more that NGROUPS_MAX groups
(Mac OS X), skip the call to getgroups() and use getgrouplist() so
we get all the groups.

--HG--
branch : 1.8