]> git.baikalelectronics.ru Git - kernel.git/commit
pty: make ptmx file ops read-only after init
authorKees Cook <keescook@chromium.org>
Thu, 8 Sep 2016 22:35:59 +0000 (15:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2016 10:47:03 +0000 (12:47 +0200)
commit6b2615cf8f56e705863eadf923158d6adf17a4c7
tree42575ee9f06a4d099398699b521edbd2ad125e93
parent47d28b2698fc8f5aa36e8dabe995157458923afa
pty: make ptmx file ops read-only after init

The ptmx_fops structure is only changed during init, so mark it as such.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c