tty: skip ioctl(TIOCSLCKTRMIOS) if possible by mihalicyn · Pull Request #2311 · checkpoint-restore/criu
If ioctl(TIOCSLCKTRMIOS) fails with EPERM it means that a CRIU process lacks of CAP_SYS_ADMIN capability. But we can use ioctl(TIOCGLCKTRMIOS) to read current ->termios_locked value from the ker...