mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-05 08:45:28 +00:00
Call the policy's init_session() function before we fork the child.
That way, the session is created and destroyed in the same process, which is needed by some modules, such as pam_mount.
This commit is contained in:
@@ -204,6 +204,7 @@ void get_ttysize(int *rowp, int *colp);
|
||||
|
||||
/* sudo.c */
|
||||
bool exec_setup(struct command_details *details, const char *ptyname, int ptyfd);
|
||||
int policy_init_session(struct command_details *details);
|
||||
int run_command(struct command_details *details);
|
||||
extern const char *list_user, *runas_user, *runas_group;
|
||||
extern struct user_details user_details;
|
||||
|
Reference in New Issue
Block a user