Hi,
I'm developing programs to monitor and test specific devices on network at the very lowest level.
I use pcap for this and it works really well. However my programs under ubuntu / linux needs to to have elevated capabilities to run in particular since im using the PROMISCUOUS mode i.e. i'm grabbing data not really intended for me.
If I remove the linux sudo password check then I can put the below line in the "Compiler Commands" "Execute after" line. This will make the compiled programs work from command line with no additional elevation.
/usr/bin/sudo /sbin/setcap cap_net_raw,cap_net_admin=eip "$TargetFile()"
My problem is that I cannot debug the program (when using "Run") since it appears that the elevated capabilites are not yet set when the debugger is invoked. Am I doing something wrong? - How do I make it work?
Thanks
Niels