* [Qemu-devel] [PATCH] linux-user: Return correct errno for unsupported netlink socket
@ 2014-05-06 3:04 Ed Swierk
2014-05-09 8:17 ` Riku Voipio
0 siblings, 1 reply; 2+ messages in thread
From: Ed Swierk @ 2014-05-06 3:04 UTC (permalink / raw)
To: qemu-devel; +Cc: Ed Swierk
This fixes "Cannot open audit interface - aborting." when the
EAFNOSUPPORT errno differs between the target and host
architectures (e.g. mips target and x86_64 host).
Signed-off-by: Ed Swierk <eswierk@skyportsystems.com>
---
linux-user/syscall.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 9864813..271d28a 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -1861,7 +1861,7 @@ static abi_long do_socket(int domain, int type, int protocol)
}
if (domain == PF_NETLINK)
- return -EAFNOSUPPORT; /* do not NETLINK socket connections possible */
+ return -TARGET_EAFNOSUPPORT;
ret = get_errno(socket(domain, type, protocol));
if (ret >= 0) {
ret = sock_flags_fixup(ret, target_type);
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] linux-user: Return correct errno for unsupported netlink socket
2014-05-06 3:04 [Qemu-devel] [PATCH] linux-user: Return correct errno for unsupported netlink socket Ed Swierk
@ 2014-05-09 8:17 ` Riku Voipio
0 siblings, 0 replies; 2+ messages in thread
From: Riku Voipio @ 2014-05-09 8:17 UTC (permalink / raw)
To: Ed Swierk; +Cc: qemu-devel
Hi,
On Mon, May 05, 2014 at 08:04:45PM -0700, Ed Swierk wrote:
> This fixes "Cannot open audit interface - aborting." when the
> EAFNOSUPPORT errno differs between the target and host
> architectures (e.g. mips target and x86_64 host).
Thanks, looks good - applied to linux-user tree.
> Signed-off-by: Ed Swierk <eswierk@skyportsystems.com>
> ---
> linux-user/syscall.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 9864813..271d28a 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -1861,7 +1861,7 @@ static abi_long do_socket(int domain, int type, int protocol)
> }
>
> if (domain == PF_NETLINK)
> - return -EAFNOSUPPORT; /* do not NETLINK socket connections possible */
> + return -TARGET_EAFNOSUPPORT;
> ret = get_errno(socket(domain, type, protocol));
> if (ret >= 0) {
> ret = sock_flags_fixup(ret, target_type);
> --
> 1.8.3.2
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-09 8:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-06 3:04 [Qemu-devel] [PATCH] linux-user: Return correct errno for unsupported netlink socket Ed Swierk
2014-05-09 8:17 ` Riku Voipio
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.