2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Move max_groups out of sudoers_user_context and into pwutil.c.

It is only used by the local password pwutil implementation.
This commit is contained in:
Todd C. Miller
2023-08-14 16:29:15 -06:00
parent 737354390c
commit 20baa39007
4 changed files with 26 additions and 8 deletions

View File

@@ -109,7 +109,6 @@ struct sudoers_user_context {
int closefrom;
int lines;
int cols;
int max_groups;
int timeout;
mode_t umask;
uid_t uid;
@@ -324,6 +323,8 @@ void sudo_pw_addref(struct passwd *);
void sudo_pw_delref(struct passwd *);
int sudo_set_gidlist(struct passwd *pw, char * const *gids, unsigned int type);
int sudo_set_grlist(struct passwd *pw, char * const *groups);
int sudo_pwutil_get_max_groups(void);
void sudo_pwutil_set_max_groups(int);
void sudo_pwutil_set_backend(sudo_make_pwitem_t, sudo_make_gritem_t, sudo_make_gidlist_item_t, sudo_make_grlist_item_t);
void sudo_setspent(void);