diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-30 21:06:14 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-30 21:06:14 +0000 |
commit | 12bc92ab8acf5e42598b6fa943ceb98ccce6ba71 (patch) | |
tree | 65c35b11f9c3d93555afe1e17b23839df74e3c5b | |
parent | 86c4a9f5131414143b2ee82acb65a74de3baa8f5 (diff) |
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
-rw-r--r-- | linux-user/syscall.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index cf39f15350..6d1997e09a 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)); } |