]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/tipc/name_table.c
tipc: Simplify enforcement of reserved name type prohibition
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 2 Nov 2011 19:49:40 +0000 (15:49 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 24 Feb 2012 22:05:14 +0000 (17:05 -0500)
commitc422f1bdc3d3f9f637b3d288a6601668e26111d6
treed3e810de3eb96a19afb65c6605af5e00620e3316
parentc74a46110fd5f97bf9299e68e9ed0453bdacb181
tipc: Simplify enforcement of reserved name type prohibition

Streamlines the logic that prevents an application from binding a
reserved TIPC name type to a port by moving the check to the code
that handles a socket bind() operation. This allows internal TIPC
subsystems to bind a reserved name without having to set an atomic
flag to gain permission to use such a name. (This simplification is
now possible due to the elimination of support for TIPC's native API.)

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/config.c
net/tipc/name_table.c
net/tipc/name_table.h
net/tipc/socket.c
net/tipc/subscr.c