Commit 12bc92ab8acf5e42598b6fa943ceb98ccce6ba71
1 parent
86c4a9f5
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
Showing
1 changed file
with
2 additions
and
0 deletions
linux-user/syscall.c
... | ... | @@ -978,6 +978,8 @@ static abi_long do_socket(int domain, int type, int protocol) |
978 | 978 | break; |
979 | 979 | } |
980 | 980 | #endif |
981 | + if (domain == PF_NETLINK) | |
982 | + return -EAFNOSUPPORT; /* do not NETLINK socket connections possible */ | |
981 | 983 | return get_errno(socket(domain, type, protocol)); |
982 | 984 | } |
983 | 985 | ... | ... |