* Re: About libnetfilter_queue [not found] <20090618144650.GL14944@finnois.psycho-hazard.net> @ 2009-06-19 12:59 ` Jan Engelhardt 2009-06-19 13:52 ` Pablo Neira Ayuso 0 siblings, 1 reply; 4+ messages in thread From: Jan Engelhardt @ 2009-06-19 12:59 UTC (permalink / raw) To: Netfilter Developer Mailing List; +Cc: Gérald Colangelo bounce nf-dev On Thursday 2009-06-18 16:46, Gérald Colangelo wrote: >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 the libnetfilter_queue stuff 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 :) > >Regards, > >-- >Gérald Colangelo >binarym@psycho-hazard.net - 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: About libnetfilter_queue 2009-06-19 12:59 ` About libnetfilter_queue Jan Engelhardt @ 2009-06-19 13:52 ` Pablo Neira Ayuso 2009-06-19 14:10 ` Gérald Colangelo 0 siblings, 1 reply; 4+ messages in thread From: Pablo Neira Ayuso @ 2009-06-19 13:52 UTC (permalink / raw) To: Gérald Colangelo; +Cc: Jan Engelhardt, Netfilter Developer Mailing List Jan Engelhardt wrote: > bounce nf-dev > > On Thursday 2009-06-18 16:46, Gérald Colangelo wrote: > >> 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 the libnetfilter_queue stuff 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: About libnetfilter_queue 2009-06-19 13:52 ` Pablo Neira Ayuso @ 2009-06-19 14:10 ` Gérald Colangelo 2009-06-27 21:18 ` Pablo Neira Ayuso 0 siblings, 1 reply; 4+ messages in thread From: Gérald Colangelo @ 2009-06-19 14:10 UTC (permalink / raw) To: Pablo Neira Ayuso; +Cc: Jan Engelhardt, Netfilter Developer Mailing List On Fri, Jun 19, 2009 at 03:52:54PM +0200, Pablo Neira Ayuso wrote: > Jan Engelhardt wrote: > > You still have to keep CAP_NET_ADMIN to 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, -- Gérald Colangelo binarym@psycho-hazard.net - 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: About libnetfilter_queue 2009-06-19 14:10 ` Gérald Colangelo @ 2009-06-27 21:18 ` Pablo Neira Ayuso 0 siblings, 0 replies; 4+ messages in thread From: Pablo Neira Ayuso @ 2009-06-27 21:18 UTC (permalink / raw) To: Gérald Colangelo; +Cc: Jan Engelhardt, Netfilter Developer Mailing List Gérald Colangelo wrote: > On Fri, Jun 19, 2009 at 03:52:54PM +0200, Pablo Neira Ayuso wrote: >> Jan Engelhardt wrote: >> >> You still have to keep CAP_NET_ADMIN to 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. 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-06-27 21:18 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20090618144650.GL14944@finnois.psycho-hazard.net> 2009-06-19 12:59 ` About libnetfilter_queue Jan Engelhardt 2009-06-19 13:52 ` Pablo Neira Ayuso 2009-06-19 14:10 ` Gérald Colangelo 2009-06-27 21:18 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).