Skip to content
Snippets Groups Projects
Commit 32927393 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarAndrey Ignatov <rdna@fb.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent f461d2dc
No related branches found
No related tags found
Loading
Showing
with 79 additions and 81 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment