From: Laurent Vivier <laurent@vivier.eu>
To: Riku Voipio <riku.voipio@iki.fi>
Cc: qemu-devel@nongnu.org, Laurent Vivier <laurent@vivier.eu>
Subject: [Qemu-devel] [PATCH 3/3] linux-user: add fd_trans helper in do_recvfrom()
Date: Tue, 21 Jun 2016 19:51:15 +0200 [thread overview]
Message-ID: <1466531475-13389-4-git-send-email-laurent@vivier.eu> (raw)
In-Reply-To: <1466531475-13389-1-git-send-email-laurent@vivier.eu>
Fix passwd using netlink audit.
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
linux-user/syscall.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index fdc884f..125a3fd 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3311,6 +3311,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)) {
--
2.5.5
next prev parent reply other threads:[~2016-06-21 17:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-21 17:51 [Qemu-devel] [PATCH 0/3] More netlink fixes Laurent Vivier
2016-06-21 17:51 ` [Qemu-devel] [PATCH 1/3] linux-user: fd_trans_*_data() returns the length Laurent Vivier
2016-06-28 16:50 ` Laurent Vivier
2016-06-30 7:52 ` Riku Voipio
2016-06-30 10:44 ` Laurent Vivier
2016-07-07 11:38 ` Laurent Vivier
2016-06-21 17:51 ` [Qemu-devel] [PATCH 2/3] linux-user: fix netlink memory corruption Laurent Vivier
2016-06-21 17:51 ` Laurent Vivier [this message]
2016-06-21 17:55 ` [Qemu-devel] [PATCH 0/3] More netlink fixes Peter Maydell
2016-06-21 18:48 ` Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1466531475-13389-4-git-send-email-laurent@vivier.eu \
--to=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).