mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-05 08:45:28 +00:00
When matching a RunasAlias for a runas group, pass the alias in as
the group_list, not the user_list. From Daniel Kopecek.
This commit is contained in:
@@ -211,7 +211,7 @@ _runaslist_matches(struct member_list *user_list, struct member_list *group_list
|
||||
break;
|
||||
case ALIAS:
|
||||
if ((a = alias_find(m->name, RUNASALIAS)) != NULL) {
|
||||
rval = _runaslist_matches(&a->members, &empty);
|
||||
rval = _runaslist_matches(&empty, &a->members);
|
||||
if (rval != UNSPEC)
|
||||
group_matched = m->negated ? !rval : rval;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user