From: balrog Date: Tue, 30 Oct 2007 21:06:14 +0000 (+0000) Subject: Do not make NETLINK socket connections possible (Alexander Graf). X-Git-Tag: release_0_9_1~409 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12bc92ab8acf5e42598b6fa943ceb98ccce6ba71;p=thirdparty%2Fqemu.git Do not make NETLINK socket connections possible (Alexander Graf). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3488 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index cf39f153500..6d1997e09a7 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -978,6 +978,8 @@ static abi_long do_socket(int domain, int type, int protocol) break; } #endif + if (domain == PF_NETLINK) + return -EAFNOSUPPORT; /* do not NETLINK socket connections possible */ return get_errno(socket(domain, type, protocol)); }