Skip to contentSkip to conversation

Netlink broken if endianness is wrong

PATCH New Alexander Graf 1 participant 1 message Jul 2, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Netlink broken if endianness is wrong

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

linux-user/syscall.c +1 -0
Index: 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));
 }