]> git.karo-electronics.de Git - linux-beck.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)
commitd2ec3f77de8e67b7a3dab3ec827467e0fd797c86
tree42575ee9f06a4d099398699b521edbd2ad125e93
parenta727b025f43d7952c0697562f5cecda9f42758aa
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