massif a process which uses pcap and linux capabilities.

Nicolas Sauvaget via Valgrind-users <[email protected]> Fri, 1 Mar 2024 17:21:25 +0000 (UTC)
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>
Hi everyone,
I came up with an issue using valgrind and I would like to know if there is a solution. I read the documentation but found nothing related to the topic.So here what I try to do :I use memcheck on a process that sniffs the network using pcap. Of course it has "cap_net_raw=eip" capabilities. I can use valgrind (memcheck) in this situation if :--> I remove the capabilities of my sniffer process.--> I set the same capabilities to valgrind binary (with setcap)
Now I would like to use massif. I have the same setup I used for memcheck. Valgrind is executed but the process itself within valgrind prints out it is not able to sniff the network using pcap.
If someone tried to valgrind a process which uses pcap through privileges (memcheck/massif) I would be interested to get some hints on that aspect.
Have a nice week-end,
Nicolas.

_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users