Kernel: Use Userspace<T> for the getsockopt syscall and Socket interface

The way getsockopt is implemented for socket types requires us to push
down Userspace<T> using into those interfaces. This change does so, and
utilizes proper copy implementations instead of the kind of haphazard
pointer dereferencing that was occurring there before.
This commit is contained in:
Brian Gianforcaro 2020-08-07 02:29:05 -07:00 committed by Andreas Kling
commit 30b2c0dc85
Notes: sideshowbarker 2024-07-19 04:09:46 +09:00
9 changed files with 69 additions and 43 deletions

View file

@ -306,8 +306,8 @@ struct SC_getsockopt_params {
int sockfd;
int level;
int option;
void* value;
socklen_t* value_size;
Userspace<void*> value;
Userspace<socklen_t*> value_size;
};
struct SC_setsockopt_params {