]> granicus.if.org Git - sudo/commit
Do not call the TIOCSETVERAUTH ioctl with a negative number of seconds.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 23 Jan 2018 18:05:41 +0000 (11:05 -0700)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 23 Jan 2018 18:05:41 +0000 (11:05 -0700)
commit52409b9c722f3f0bb9c1e0741d6d8f2e332d037f
tree5f45261863d268e76f4c6f7c72f02fd5c8fff15c
parent2e37959fec0a8931ec346a172ce3495ffe96e27e
Do not call the TIOCSETVERAUTH ioctl with a negative number of seconds.
Also cap the max number of seconds at 3600 to avoid getting EINVAL
from TIOCSETVERAUTH.
plugins/sudoers/timestamp.c