[sudo-commits] sudo changeset 14770:25c293ae5053

Todd C. Miller Todd.Miller at sudo.ws
Tue Jun 13 16:46:04 MDT 2023


changeset:	14770:25c293ae5053 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/25c293ae5053
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Tue Jun 13 15:46:46 2023 -0600

Log Message:
	Populate runasusers even when only a grouplist is specified.

	When a sudoers rule permits the user to run commands as a group,
	not a user, we should set the runasusers to single member with the
	special MYSELF token.  This guarantees that the only time runasusers
	will be NULL is when no runaslist is present.

diffstat:

 plugins/sudoers/gram.c                         |  356 ++++++++++++------------
 plugins/sudoers/gram.y                         |   16 +-
 plugins/sudoers/regress/sudoers/test27.json.ok |    6 +
 plugins/sudoers/regress/sudoers/test27.ldif.ok |    2 +
 plugins/sudoers/regress/sudoers/test27.out.ok  |    4 +-
 5 files changed, 210 insertions(+), 174 deletions(-)



More information about the sudo-commits mailing list