Pass in directory to check_user_runchroot() and check_user_runcwd().

This way we do not rely on the runas_ctx global.
This commit is contained in:
Todd C. Miller
2023-08-14 13:25:13 -06:00
parent 2e8648ea0f
commit 737354390c
5 changed files with 20 additions and 22 deletions

View File

@@ -264,8 +264,8 @@ 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);
int check_user_runchroot(const char *runchroot);
int check_user_runcwd(const char *runcwd);
/* prompt.c */
char *expand_prompt(const char *old_prompt, const char *auth_user);