> So without actually looking into the code, can we just somehow disallow > attaching this line discipline to a console (ban such a TIOCSETD) and be > done with this issue? IOW disallow root to shoot their foot. Probably possible by patching gsmld_open() if there is a function which can check this based on a struct tty_struct * handle. That may, however, introduce some cross references that are hard to maintain. Best regards, Daniel Starke