linux-user: Add most IFTUN ioctls
commit6addf06a3c4dad68d8d7032e31714e81b438c7d9
authorShu-Chun Weng <scw@google.com>
Tue, 29 Sep 2020 01:48:01 +0000 (28 18:48 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 18 Dec 2020 10:23:10 +0000 (18 11:23 +0100)
tree9157864d4f9eb5b318ceb377c11158e66308e8ec
parent8494645797ac3c61d8693ac4164a87c8790a8717
linux-user: Add most IFTUN ioctls

The three options handling `struct sock_fprog` (TUNATTACHFILTER,
TUNDETACHFILTER, and TUNGETFILTER) are not implemented. Linux kernel
keeps a user space pointer in them which we cannot correctly handle.

Signed-off-by: Josh Kunz <jkz@google.com>
Signed-off-by: Shu-Chun Weng <scw@google.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200929014801.655524-1-scw@google.com>
[lv: use 0 size in unlock_user()]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/ioctls.h
linux-user/syscall.c
linux-user/syscall_defs.h