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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user