I want to run valgrind to monitor a program binary named contextBroker
this way:
valgrind -v --leak-check=full --track-origins=yes --trace-children=yes contextBroker
but I get this error message:
valgrind: /usr/bin/contextBroker: Operation not permitted
(It happens that the contextBroker
binary is in /usr/bin/
)
First thing I though was some kind of problem with permissions. However:
I run the valgrind command as root user
The permissions of the /usr/bin/contextBroker
are even wider:
ls /usr/bin/contextBroker -l
-rwxr-xr-x 1 root root 7108992 Jun 3 18:15 /usr/bin/contextBroker
Additional facts:
contextBroker
binary works fine, e.g. if I run it using contextBroker
it works.How I can solve this problem and run valgrind on my process? Thanks!
Using --privileged
in the docker run
command line solved this issue.
Thanks Nick ODell for the hint! :)