Move check_user_* functions to check_util.c so testsudoers can use them.

This commit is contained in:
Todd C. Miller
2023-06-30 10:43:18 -06:00
parent 689efe3cdd
commit 01ad570e24
7 changed files with 182 additions and 99 deletions

View File

@@ -296,9 +296,13 @@ int find_path(const char *infile, char **outfile, struct stat *sbp,
/* check.c */
int check_user(int validate, int mode);
bool check_user_shell(const struct passwd *pw);
bool user_is_exempt(void);
/* check_util.c */
bool check_user_shell(const struct passwd *pw);
int check_user_runchroot(void);
int check_user_runcwd(void);
/* prompt.c */
char *expand_prompt(const char *old_prompt, const char *auth_user);