Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (19 loc) · 915 Bytes

Readme.org

File metadata and controls

32 lines (19 loc) · 915 Bytes

NO LONGER NEEDED. THE KERNEL BUG HAS BEEN FIXED.

Enable TIOCSTI through a kernel module.

How to use

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.

Security concern

CONFIG_LEGACY_TIOCSTI exists for a reason. Enabling TIOCSTI poses a potential **security risk**.

Use this at your own risk.

Why?

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.