Enable TIOCSTI through a kernel module.
clone the repo, build and insmod.
git clone https://github.com/kauruus/legacy_tiocsti.git cd legacy_tiocsti make sudo insmod legacy_tiocsti.ko
to disable TIOCSTI
, simply sudo rnmod legacy_tiocsti
.
CONFIG_LEGACY_TIOCSTI
exists for a reason. Enabling TIOCSTI
poses a potential **security risk**.
Use this at your own risk.
I’m a mcfly user, it needs TIOCSTI
to work with bash.
For some Linux distributions, TIOCSTI
is disabled by default.
And there is a bug that prevents me to re-enable it with sysctl.
So before the patch is merged next kernel release, I use this hack to re-enable it.