mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-19 16:39:31 +01:00
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
a727b025f4
commit
d2ec3f77de
1 file changed
+1
-1
+1
-1
@@ -800,7 +800,7 @@ out_free_file:
|
||||
return retval;
|
||||
}
|
||||
|
||||
static struct file_operations ptmx_fops;
|
||||
static struct file_operations ptmx_fops __ro_after_init;
|
||||
|
||||
static void __init unix98_pty_init(void)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user