[NETLINK]: Return -EPROTONOSUPPORT in netlink_create() if no kernel socket is registered
commitab33a1711cf60bfb562b1ab89ac9f23d1425e8b1
authorPatrick McHardy <kaber@trash.net>
Mon, 15 Aug 2005 02:31:36 +0000 (14 19:31 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 29 Aug 2005 23:00:58 +0000 (29 16:00 -0700)
treeabd497f5b7023ff748001d6ef182d74f882f1a07
parentac6d439d2097b72ea0cbc2322ce1263a38bc1fd0
[NETLINK]: Return -EPROTONOSUPPORT in netlink_create() if no kernel socket is registered

This is necessary for dynamic number of netlink groups to make sure we know
the number of possible groups before bind() is called. With this change pure
userspace communication using unused netlink protocols becomes impossible.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c