Add support for controlling whether utmp is updated and which user is
listed in the entry.
This commit is contained in:
@@ -38,12 +38,13 @@ int suspend_parent(int signo);
|
||||
void fd_set_iobs(fd_set *fdsr, fd_set *fdsw);
|
||||
void handler(int s);
|
||||
void pty_close(struct command_status *cstat);
|
||||
void pty_setup(uid_t uid, const char *tty);
|
||||
void pty_setup(uid_t uid, const char *tty, const char *utmp_user);
|
||||
void terminate_child(pid_t pid, int use_pgrp);
|
||||
extern int signal_pipe[2];
|
||||
|
||||
/* utmp.c */
|
||||
int utmp_login(const char *from_line, const char *to_line, int ttyfd);
|
||||
int utmp_login(const char *from_line, const char *to_line, int ttyfd,
|
||||
const char *user);
|
||||
int utmp_logout(const char *line);
|
||||
|
||||
#endif /* _SUDO_EXEC_H */
|
||||
|
Reference in New Issue
Block a user