[sudo-commits] sudo changeset 7067:8dc19353f148

Todd C. Miller Todd.Miller at courtesan.com
Fri Jul 1 14:14:03 EDT 2011

changeset:	7067:8dc19353f148 in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/8dc19353f148
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Fri Jul 01 14:13:47 2011 -0400

Log Message:
	Resolve the list of gids passed in from the sudo frontend (the
	result of getgroups()) to names and store both the group names and
	ids in the sudo_user struct.  When matching groups in the sudoers
	file, match based on the names in the groups list first and
	only do a gid-based match when we absolutely have to.  By matching
	on the group name (as it is listed in sudoers) instead of id
	(which we would have to resolve) we save a lot of group lookups
	for sudoers files with a lot of groups in them.


 plugins/sudoers/ldap.c      |   24 ++++-----
 plugins/sudoers/pwutil.c    |   79 +++++++++++++++++++++++--------
 plugins/sudoers/set_perms.c |  108 ++++++++++++++++++++++----------------------
 plugins/sudoers/sudo_nss.c  |   22 +++++++-
 plugins/sudoers/sudoers.c   |   25 ++++++++--
 plugins/sudoers/sudoers.h   |   18 ++++--
 6 files changed, 172 insertions(+), 104 deletions(-)

More information about the sudo-commits mailing list