diff options
author | Ying Xue <ying.xue@windriver.com> | 2013-06-17 16:54:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-18 00:53:00 +0200 |
commit | 7d0ab17b74330e39a68ba33099ccda27f794f519 (patch) | |
tree | 67eafce0b9ed65649be0407f800227001f3e5c54 /net/tipc/socket.c | |
parent | tipc: convert topology server to use new server facility (diff) | |
download | linux-7d0ab17b74330e39a68ba33099ccda27f794f519.tar.xz linux-7d0ab17b74330e39a68ba33099ccda27f794f519.zip |
tipc: convert configuration server to use new server facility
As the new socket-based TIPC server infrastructure has been
introduced, we can now convert the configuration server to use
it. Then we can take future steps to simplify the configuration
server locking policy.
Some minor reordering of initialization is done, due to the
dependency on having tipc_socket_init completed.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/tipc/socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index d0254157a30d..9510fe8acf45 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -403,7 +403,8 @@ static int bind(struct socket *sock, struct sockaddr *uaddr, int uaddr_len) return -EAFNOSUPPORT; if ((addr->addr.nameseq.type < TIPC_RESERVED_TYPES) && - (addr->addr.nameseq.type != TIPC_TOP_SRV)) + (addr->addr.nameseq.type != TIPC_TOP_SRV) && + (addr->addr.nameseq.type != TIPC_CFG_SRV)) return -EACCES; return (addr->scope > 0) ? |