Store the session ID in the tty ticket file too. A tty may only
be in one session at a time so if the session ID doesn't match we ignore the ticket.
This commit is contained in:
@@ -37,6 +37,7 @@ struct sudo_tty_info {
|
||||
dev_t rdev; /* tty device ID */
|
||||
ino_t ino; /* tty inode number */
|
||||
struct timeval ctime; /* tty inode change time */
|
||||
pid_t sid; /* ID of session with controlling tty */
|
||||
};
|
||||
|
||||
bool update_timestamp(void);
|
||||
|
Reference in New Issue
Block a user