Commit d2ec3f77 authored by Kees Cook's avatar Kees Cook Committed by Greg Kroah-Hartman

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: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a727b025
......@@ -800,7 +800,7 @@ static int ptmx_open(struct inode *inode, struct file *filp)
return retval;
}
static struct file_operations ptmx_fops;
static struct file_operations ptmx_fops __ro_after_init;
static void __init unix98_pty_init(void)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment