mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Pass a pointer to user_env in to the init_session policy plugin
function so session setup can modify the user environment as needed. For PAM authentication, merge the PAM environment with the user environment at init_session time. We no longer need to swap in the user_env for environ during session init, nor do we need to disable the env hooks at init_session time.
This commit is contained in:
@@ -215,9 +215,9 @@ void remove_timestamp(bool);
|
||||
bool user_is_exempt(void);
|
||||
|
||||
/* sudo_auth.c */
|
||||
int verify_user(struct passwd *, char *);
|
||||
int sudo_auth_begin_session(struct passwd *);
|
||||
int sudo_auth_end_session(struct passwd *);
|
||||
int verify_user(struct passwd *pw, char *prompt);
|
||||
int sudo_auth_begin_session(struct passwd *pw, char **user_env[]);
|
||||
int sudo_auth_end_session(struct passwd *pw);
|
||||
int sudo_auth_init(struct passwd *pw);
|
||||
int sudo_auth_cleanup(struct passwd *pw);
|
||||
|
||||
@@ -304,6 +304,7 @@ char *expand_iolog_path(const char *prefix, const char *dir, const char *file,
|
||||
|
||||
/* env.c */
|
||||
char **env_get(void);
|
||||
void env_merge(char * const envp[], bool overwrite);
|
||||
void env_init(char * const envp[]);
|
||||
void init_envtables(void);
|
||||
void insert_env_vars(char * const envp[]);
|
||||
|
Reference in New Issue
Block a user