Allow setuid/setgid/setcap binaries to be run if

valgrind is running as root.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16455
This commit is contained in:
Tom Hughes 2017-06-26 12:10:42 +00:00
parent 2436a4ad6f
commit 1038ee89e5

View File

@ -140,7 +140,7 @@ Int VG_(do_exec_inner)(const HChar* exe, ExeInfo* info)
Int fd;
Int ret;
res = VG_(pre_exec_check)(exe, &fd, False/*allow_setuid*/);
res = VG_(pre_exec_check)(exe, &fd, VG_(geteuid)() == 0/*allow_setuid*/);
if (sr_isError(res))
return sr_Err(res);