sysctl: pass kernel pointers to ->proc_handler
Instead of having all the sysctl handlers deal with user pointers, which is rather hairy in terms of the BPF interaction, copy the input to and from userspace in common code. This also means that the strings are always NUL-terminated by the common code, making the API a little bit safer. As most handler just pass through the data to one of the common handlers a lot of the changes are mechnical. Signed-off-by:Christoph Hellwig <hch@lst.de> Acked-by:
Andrey Ignatov <rdna@fb.com> Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
Loading
-
mentioned in commit c7388c1f
-
mentioned in commit 7ff0d449
-
mentioned in commit ef9d965b
-
mentioned in commit a2541dcb
-
mentioned in commit 8c46fa96
-
mentioned in commit 56965ac7
-
mentioned in commit b0daa2c7
-
mentioned in commit 4773ef33
-
mentioned in commit 7bb82ac3
-
mentioned in commit 9ca48e20
-
mentioned in commit 54fa9ba5
-
mentioned in commit 45089437
Please register or sign in to comment