About libnetfilter_queue
A message that is not in the archive (sent off-list or not yet received): [email protected]
bounce nf-dev
Quoted 11 lines · Gérald Colangelo
Hi guy,
I wrote you today since i noticed you're contributing regulary to the netfilter-devel list ...
Since the trafic is quiet huge, i unsubscribe, but i want to pass an information i discovered while coding ...
If you init all thelibnetfilter_queuestuff and then, setuid(!0), then you won't be able to send packet, the kernel drops it silently ... I've been looking for the solution for 5 days ! That's why i prefered telling you, and if you find this information useful, relay it to the list :)
Quoted 10 lines
Regards,
Signature · 5 lines
Gérald Colangelo [email protected] - http://www.yanluo.net Being a sysadmin means hours of hard labor every day. Being an abusive sysadmin means hours of fun.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Pablo Neira Ayuso
maintainerQuoted 12 lines · Jan Engelhardt
bounce nf-dev
Quoted 8 lines · Gérald Colangelo
Hi guy,
I wrote you today since i noticed you're contributing regulary to the netfilter-devel list ...
Since the trafic is quiet huge, i unsubscribe, but i want to pass an information i discovered while coding ...
If you init all thelibnetfilter_queuestuff and then, setuid(!0), then you won't be able to send packet, the kernel drops it silently ...
You still have to keep CAP_NET_ADMIN to make it. And you should get EPERM when sending packets.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 4 lines · Pablo Neira Ayuso
Jan Engelhardt wrote:
You still have to keep
CAP_NET_ADMINto make it. And you should get EPERM when sending packets.
Ok, i didn't know for the CAP_NET_ADMIN.
But i didn't get EPERM, nfq_set_verdict just returned me a value more than 0... perhaps EPERM is stored in errno, but at least nfq_set_verdict() reports success.
Regards,
Signature · 9 lines
Gérald Colangelo [email protected] - http://www.yanluo.net Being a sysadmin means hours of hard labor every day. Being an abusive sysadmin means hours of fun. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Pablo Neira Ayuso
maintainerQuoted 10 lines · Gérald Colangelo
Quoted 4 lines · Pablo Neira Ayuso
Jan Engelhardt wrote:
You still have to keep
CAP_NET_ADMINto make it. And you should get EPERM when sending packets.Ok, i didn't know for the
CAP_NET_ADMIN.
But i didn't get EPERM,nfq_set_verdictjust returned me a value more than 0... perhaps EPERM is stored in errno, but at leastnfq_set_verdict()reports success.
You're right. We're sending the netlink message to kernel-space without the NLM_F_ACK flag set, that's why we don't get any error reporting back. I'm going to look into this.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html