abirvalg@xxxxxxxxxxx wrote, On 12/29/11 15:00:
Hi, I launched my application with CAP_NET_ADMIN capability, yet both nfq_unbind_pf and nfq_bind_pf produce an error. When I setuid(0) no error is produced and everything works as expected. Could you please confirm that Library setup operations require root. Isn't it a bit misleading that libnetfilter_queue docu states that CAP_NET_ADMIN is required without mentioning root permissions. Would it be possible to do Library Setup with only CAP_NET_ADMIN and without root priviliges in future versions?
On a host node I didn't need CAP_NET_ADMIN when starting it as root (ie. maybe on my system root already has that cap by default; would make sense). But on a VPS on the same host node I couldn't get it working yet. It always gives errno=111 (ECONNREFUSED; "Connection refused"). Does yours work in a virtual machine, ie. on a VPS ? -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html