termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
761 stars 160 forks source link

Change TCSAFLUSH flag to TCSANOW due to new restrictions #88

Closed Hax4us closed 4 years ago

Hax4us commented 4 years ago

This issue https://github.com/termux/termux-packages/issues/1359 was solved inside termux but still happening in prooted environment According to @xeffyr Since TCSAFLUSH is set via

ioctl(fd, TCSETS+TCSAFLUSH /* values: 0x5402+2 */, &term) it should be possible to modify proot to replace ioctl arguments to something like:

ioctl(fd, TCSETS+TCSANOW /* values: 0x5402+0 */, &term)

michalbednarski commented 4 years ago

Fixed, updated version is now available in Termux apt repo