* [PATCH] sysctl: wire up ->splice_read and ->splice_write
@ 2020-09-04 16:48 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2020-09-04 16:48 UTC (permalink / raw)
To: viro; +Cc: mcgrof, keescook, yzaikin, linux-kernel
Make sure the kernel_write that the init code uses to apply sysctl
values from the kernel command line keeps working without set_fs().
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
This could be folded into "sysctl: Convert to iter interfaces".
fs/proc/proc_sysctl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index a4a3122f8a584a..317899222d7fdf 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -853,6 +853,8 @@ static const struct file_operations proc_sys_file_operations = {
.poll = proc_sys_poll,
.read_iter = proc_sys_read,
.write_iter = proc_sys_write,
+ .splice_read = generic_file_splice_read,
+ .splice_write = iter_file_splice_write,
.llseek = default_llseek,
};
--
2.28.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-04 16:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-04 16:48 [PATCH] sysctl: wire up ->splice_read and ->splice_write Christoph Hellwig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.