|
From: Jeremy F. <je...@go...> - 2005-05-25 19:32:41
|
Curran, Joseph (GE Healthcare) wrote:
>The only way I found to get the program to run is to drop the SUID/SGID and run the program as root. I would like to avoid that. Program runs fine as root or normal user until I try using valgrind.
>
>Any suggestions or explainations of why I get Permission denied?
>
Valgrind doesn't (can't) support suid/sgid executables, because it does
execve() in userspace. Rather than ignoring the suid/gid, and
potentially causing a malfunction by running the program with the wrong
identity, it refuses to run suid executables.
To fix this, you need to have an suid wrapper program, which invokes
your real program under valgrind.
J
|