qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Netlink broken if endianness is wrong
@ 2007-07-02 17:28 Alexander Graf
  0 siblings, 0 replies; only message in thread
From: Alexander Graf @ 2007-07-02 17:28 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

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

[-- Attachment #2: netlink --]
[-- Type: text/plain, Size: 424 bytes --]

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));
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-02 17:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-02 17:28 [Qemu-devel] [PATCH] Netlink broken if endianness is wrong Alexander Graf

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).