]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Fix skb_under_panic when configuring TIPC without privileges
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 21 May 2008 21:52:30 +0000 (14:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 May 2008 21:52:30 +0000 (14:52 -0700)
commitf332814a085954704f3f45a0740c8bb86db630ba
tree4516d63a1c32fb8e06d0730527f3c54c02df2f87
parentb39084015a6de79079b226389b1579aea87f1b02
tipc: Fix skb_under_panic when configuring TIPC without privileges

This patch prevents a TIPC configuration command requiring network
administrator privileges from triggering an skbuff underrun if it
is issued by a process lacking those privileges.  The revised error
handling code avoids the use of a potentially uninitialized global
variable by transforming the unauthorized command into a new command,
then following the standard command processing path to generate the
required error message.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tipc_config.h
net/tipc/config.c
net/tipc/netlink.c