[sudo-commits] sudo changeset 7113:51b3ed8c600b

Todd C. Miller Todd.Miller at courtesan.com
Mon Jul 25 09:42:50 EDT 2011

changeset:	7113:51b3ed8c600b in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/51b3ed8c600b
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Mon Jul 25 09:17:18 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