summary refs log tree commit diff stats
path: root/ui/sdl2.c
diff options
context:
space:
mode:
authorJames Cowgill <james.cowgill@mips.com>2017-11-06 18:03:51 +0000
committerRiku Voipio <riku.voipio@linaro.org>2017-11-07 21:58:13 +0200
commita8b154a637b586441bad42259a8a9b9619cd117c (patch)
treeb1150b64d2df54a532dc115a472706481b4c9e5c /ui/sdl2.c
parenta4dd3d5172c951e05a7424f14c0f9372522b48f8 (diff)
downloadfocaccia-qemu-a8b154a637b586441bad42259a8a9b9619cd117c.tar.gz
focaccia-qemu-a8b154a637b586441bad42259a8a9b9619cd117c.zip
linux-user: return EINVAL from prctl(PR_*_SECCOMP)
If an application tries to install a seccomp filter using
prctl(PR_SET_SECCOMP), the filter is likely for the target instead of the host
architecture. This will probably cause qemu to be immediately killed when it
executes another syscall.

Prevent this from happening by returning EINVAL from both seccomp prctl
calls. This is the error returned by the kernel when seccomp support is
disabled.

Fixes: https://bugs.launchpad.net/qemu/+bug/1726394
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: James Cowgill <james.cowgill@mips.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'ui/sdl2.c')
0 files changed, 0 insertions, 0 deletions