[PATCH v2] tty: n_gsm: restrict tty devices to attach
Linus Torvalds
torvalds at linux-foundation.org
Sat Apr 20 18:05:35 UTC 2024
On Sat, 20 Apr 2024 at 11:02, Linus Torvalds
<torvalds at linux-foundation.org> wrote:
>
> Most other normal tty devices just expect ->write() to be called in
> normal process context, so if we do a line discipline flag, it would
^^^^^^^^^^^^^^^^^^^^
> have to be something like "I'm ok with being called with interrupts
> disabled", and then the n_gsm ->open function would just check that.
Not line discipline - it would be a 'struct tty_operations' flag
saying 'my ->write() function is ok with atomic context".
Linus
More information about the Linux-security-module-archive
mailing list