[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Netlink broken if endianness is wrong
From: |
Alexander Graf |
Subject: |
[Qemu-devel] [PATCH] Netlink broken if endianness is wrong |
Date: |
Mon, 02 Jul 2007 19:28:41 +0200 |
User-agent: |
Thunderbird 1.5.0.10 (X11/20060911) |
While using i386 X applications on ppc I had to find out that netlink
communication is not endianness-aware (X apps just hang forever waiting
for a reply on a netlink socket). Because it is basically only used for
programs that are not really supposed to be emulated (like udev afaik)
there should be no problem to just shut it off.
Alex
Index: qemu/linux-user/syscall.c
===================================================================
--- qemu.orig/linux-user/syscall.c
+++ qemu/linux-user/syscall.c
@@ -898,6 +906,7 @@ static long do_socket(int domain, int ty
break;
}
#endif
+ if(domain == PF_NETLINK) return -EAFNOSUPPORT; /* do not make NETLINK
socket connections possible */
return get_errno(socket(domain, type, protocol));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] Netlink broken if endianness is wrong,
Alexander Graf <=