angler-fishThe Vulnerability History Project

[NETFILTER]: x_tables: simplify compat API

      Split the xt_compat_match/xt_compat_target into smaller type-safe functions
performing just one operation. Handle all alignment and size-related
conversions centrally in these function instead of requiring each module to
implement a full-blown conversion function. Replace ->compat callback by
->compat_from_user and ->compat_to_user callbacks, responsible for
converting just a single private structure.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
    
commit 9fa492cdc160cd27ce1046cb36f47d3b2b1efa21
+18 -11
+24 -91
+109 -83
expand_less