version 1.1.1.1, 2012/02/21 16:23:02
|
version 1.1.1.2, 2012/05/29 12:26:49
|
Line 28
|
Line 28
|
*/ |
*/ |
|
|
/* exec.c */ |
/* exec.c */ |
int my_execve(const char *path, char *const argv[], char *const envp[]); | int sudo_execve(const char *path, char *const argv[], char *const envp[], int noexec); |
int pipe_nonblock(int fds[2]); |
int pipe_nonblock(int fds[2]); |
|
|
/* exec_pty.c */ |
/* exec_pty.c */ |
|
struct command_details; |
|
struct command_status; |
int fork_pty(struct command_details *details, int sv[], int *maxfd); |
int fork_pty(struct command_details *details, int sv[], int *maxfd); |
int perform_io(fd_set *fdsr, fd_set *fdsw, struct command_status *cstat); |
int perform_io(fd_set *fdsr, fd_set *fdsw, struct command_status *cstat); |
int suspend_parent(int signo); |
int suspend_parent(int signo); |
Line 39 void fd_set_iobs(fd_set *fdsr, fd_set *fdsw);
|
Line 41 void fd_set_iobs(fd_set *fdsr, fd_set *fdsw);
|
void handler(int s); |
void handler(int s); |
void pty_close(struct command_status *cstat); |
void pty_close(struct command_status *cstat); |
void pty_setup(uid_t uid, const char *tty, const char *utmp_user); |
void pty_setup(uid_t uid, const char *tty, const char *utmp_user); |
void terminate_child(pid_t pid, int use_pgrp); | void terminate_child(pid_t pid, bool use_pgrp); |
extern int signal_pipe[2]; |
extern int signal_pipe[2]; |
|
|
/* utmp.c */ |
/* utmp.c */ |
int utmp_login(const char *from_line, const char *to_line, int ttyfd, | bool utmp_login(const char *from_line, const char *to_line, int ttyfd, |
const char *user); |
const char *user); |
int utmp_logout(const char *line, int status); | bool utmp_logout(const char *line, int status); |
|
|
#endif /* _SUDO_EXEC_H */ |
#endif /* _SUDO_EXEC_H */ |