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)
commit848edc69192a38bf9d261032f248b14f47e6af8b
tree799712600cd661118131c8dfa79a231e21293531
parent2a15cd2ff488a9fdb55e5e34060f499853b27c77
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