Propagate error to userspace at getting
Subsystems (2)
Pablo Neira
maintainerPATCH 2/8 Propagate error to userspace at getting
Propagate the error to userspace instead of returning -EPERM if the get conntrack operation fails.
Signed-off-by Pablo Neira Ayuso <[email protected]>
Signature · 2 lines
The dawn of the fourth age of Linux firewalling is coming; a time of great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
Propagate the error to userspace instead of returning -EPERM if the get conntrack operation fails.
Signed-off-by Pablo Neira Ayuso <[email protected]>
net/ipv4/netfilter/ip_conntrack_netlink.c +1 -1
@@ -808,7 +808,7 @@ ctnetlink_get_conntrack(struct sock *ctn free:kfree_skb (skb2); out: -return -1 ; +return err; } static inline int
Harald Welte
AppliedQuoted 2 lines · Pablo Neira
Propagate the error to userspace instead of returning
-EPERMif the get conntrack operation fails.
thanks, applied.
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie