[sudo-commits] sudo changeset 7114:168d6d4a386b

Todd C. Miller Todd.Miller at courtesan.com
Mon Jul 25 09:43:58 EDT 2011

changeset:	7114:168d6d4a386b in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/168d6d4a386b
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Mon Jul 25 09:43:44 2011 -0400

Log Message:
	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.


 plugins/sudoers/pwutil.c  |  154 ++++++++++-----------------------------------
 plugins/sudoers/sudoers.c |   10 --
 plugins/sudoers/sudoers.h |    7 --
 src/sudo.c                |   60 +++++++++++++++--
 4 files changed, 89 insertions(+), 142 deletions(-)

More information about the sudo-commits mailing list