summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorPaul Burton2014-06-22 12:25:36 +0200
committerRiku Voipio2014-06-29 13:19:59 +0200
commit82d0fe6b7a7384ed442b6a481ab33d442a06f5f1 (patch)
treeb728cb6621e4e92170e366e3ba11d7e7c3b5ce60 /linux-user/syscall.c
parentlinux-user: support SO_{SND, RCV}BUFFORCE setsockopt options (diff)
downloadqemu-82d0fe6b7a7384ed442b6a481ab33d442a06f5f1.tar.gz
qemu-82d0fe6b7a7384ed442b6a481ab33d442a06f5f1.tar.xz
qemu-82d0fe6b7a7384ed442b6a481ab33d442a06f5f1.zip
linux-user: support SO_PASSSEC setsockopt option
Translate the SO_PASSSEC option to setsockopt to the host value & perform the syscall as expected, allowing use of the option by target programs. Signed-off-by: Paul Burton <paul@archlinuxmips.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index bdc60fe0ee..3971cb51d6 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -1531,6 +1531,9 @@ set_timeout:
case TARGET_SO_PASSCRED:
optname = SO_PASSCRED;
break;
+ case TARGET_SO_PASSSEC:
+ optname = SO_PASSSEC;
+ break;
case TARGET_SO_TIMESTAMP:
optname = SO_TIMESTAMP;
break;