Wrap valid_shell and add to sudo_pwutil_set_backend().

This will make it possible to support a different getusershell()
implementation for testsudoers in the future.
This commit is contained in:
Todd C. Miller
2023-09-09 14:48:25 -06:00
parent d18ee8e0e7
commit 2fdb4db339
7 changed files with 19 additions and 8 deletions

View File

@@ -73,6 +73,6 @@ struct cache_item *sudo_make_gritem(gid_t gid, const char *group);
struct cache_item *sudo_make_grlist_item(const struct passwd *pw, char * const *groups);
struct cache_item *sudo_make_gidlist_item(const struct passwd *pw, int ngids, GETGROUPS_T *gids, char * const *gidstrs, unsigned int type);
struct cache_item *sudo_make_pwitem(uid_t uid, const char *user);
bool valid_shell(const char *shell);
bool sudo_valid_shell(const char *shell);
#endif /* SUDOERS_PWUTIL_H */