Messages in this thread | | | From | "Starke, Daniel" <> | Subject | RE: [PATCH 1/1] tty: n_gsm: Avoid sleeping during .write() whilst atomic | Date | Wed, 4 Oct 2023 08:58:32 +0000 |
| |
> 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
| |