Allow the group set by "sudo -g" to be any of the target user's groups.
Previously, this was only allowed if the group matched the target user's primary group ID (from the passwd database entry). The sudoers policy will now allow the group if it is one of the target user's supplemental groups as well.
This commit is contained in:
@@ -314,6 +314,7 @@ int runaslist_matches(struct sudoers_parse_tree *parse_tree, const struct member
|
||||
int user_matches(struct sudoers_parse_tree *parse_tree, const struct passwd *pw, const struct member *m);
|
||||
int userlist_matches(struct sudoers_parse_tree *parse_tree, const struct passwd *pw, const struct member_list *list);
|
||||
const char *sudo_getdomainname(void);
|
||||
struct gid_list *runas_getgroups(void);
|
||||
|
||||
/* toke.c */
|
||||
void init_lexer(void);
|
||||
|
Reference in New Issue
Block a user