]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ebtables: fix wrong name length while copying to user-space
authorSantosh Nayak <santoshprasadnayak@gmail.com>
Tue, 6 Mar 2012 01:22:50 +0000 (01:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Mar 2012 19:43:49 +0000 (14:43 -0500)
commitb326db21df5153697f08fbb407a565adaa886106
tree799712600cd661118131c8dfa79a231e21293531
parentc458583031936e12b3b6fc31844468ef35e09663
netfilter: ebtables: fix wrong name length while copying to user-space

user-space ebtables expects 32 bytes-long names, but xt_match names
use 29 bytes. We have to copy less 29 bytes and then, make sure we
fill the remaining bytes with zeroes.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/netfilter/ebtables.c