]> 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)
commitc842606bea397db23994b09eb4d6fbd650a94025
tree42575ee9f06a4d099398699b521edbd2ad125e93
parent5152cec389ba01d6d6a6159baa78efe603b0c05d
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