From patchwork Tue Jul 19 12:54:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 650170 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rv0Qc3T9Bz9sdn for ; Tue, 19 Jul 2016 22:55:52 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=CjgbtG7x; dkim-atps=neutral Received: from localhost ([::1]:55685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPUYw-0000pL-Bp for incoming@patchwork.ozlabs.org; Tue, 19 Jul 2016 08:55:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPUXX-0006uJ-4O for qemu-devel@nongnu.org; Tue, 19 Jul 2016 08:54:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPUXV-0003Kj-Rz for qemu-devel@nongnu.org; Tue, 19 Jul 2016 08:54:23 -0400 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:34391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPUXV-0003Kf-Jm for qemu-devel@nongnu.org; Tue, 19 Jul 2016 08:54:21 -0400 Received: by mail-lf0-x231.google.com with SMTP id l69so13409068lfg.1 for ; Tue, 19 Jul 2016 05:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HJYrhmeOnKsGcqRPEc8qfYCYRLEr6GEWzGUISVkQfc4=; b=CjgbtG7xpN/h1VABfSRXa9w4lFGJZppp4FVLENxECGt5JFVx5ALn0VmaAUB1Zf6+EG AFDo8LBreANZjuAx29RE/76w395Ih13ALDix+AH4roE37tRHbxsU7o/g8vqQOCnAtbiS /z1j1VzUZocScdzd2BJMsnVdd+ONA0QFBMv9k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HJYrhmeOnKsGcqRPEc8qfYCYRLEr6GEWzGUISVkQfc4=; b=Ht65a05FnM3EQhTXqQxdXx1kPQbUbAbcab5K6EdiuUbQ9oiLv2KgwCT2iI70IwHhdE sH9wCx9cO9FGrTJ2ICER7lVoaNFmHrw+I+uDVpM4S79ZGuEN1v0ZTSNZ75oCh5FPNVE+ gpu4ERyjUOIomd7PSW7b+IwjQBtdqm/8Lx/hM0R3PV0mr4MS1rhyr7MznBEqzKLInW5C FmLVknMXuydrsddsvcbCTz75z+YNdaPVNc21X7+e6BTkA33hH4ePWjXoy4RR90nCZqly +Fu1FMgKe7kLRqyJYli0LHQPYNQLhwq/EcVxm3GbSV3w25F08ICYkgKapRA0RekPj7/z y/PA== X-Gm-Message-State: ALyK8tLgrV0xlmyMLeCe+RI3iAsaMexzsgbNMZ9U3kfY3Vp6t+2f5EbsBjrYHrZv0B4t3LRK X-Received: by 10.25.80.84 with SMTP id e81mr5129501lfb.96.1468932860775; Tue, 19 Jul 2016 05:54:20 -0700 (PDT) Received: from beaming.home (91-157-170-157.elisa-laajakaista.fi. [91.157.170.157]) by smtp.gmail.com with ESMTPSA id g3sm2248898lfe.14.2016.07.19.05.54.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jul 2016 05:54:20 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Tue, 19 Jul 2016 15:54:01 +0300 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::231 Subject: [Qemu-devel] [PULL 03/16] linux-user: add fd_trans helper in do_recvfrom() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Laurent Vivier Fix passwd using netlink audit. Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 491ab55..f9ce9d8 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -3316,6 +3316,9 @@ static abi_long do_recvfrom(int fd, abi_ulong msg, size_t len, int flags, ret = get_errno(safe_recvfrom(fd, host_msg, len, flags, NULL, 0)); } if (!is_error(ret)) { + if (fd_trans_host_to_target_data(fd)) { + ret = fd_trans_host_to_target_data(fd)(host_msg, ret); + } if (target_addr) { host_to_target_sockaddr(target_addr, addr, addrlen); if (put_user_u32(addrlen, target_addrlen)) {