Valgrind: r16455 - /trunk/coregrind/m_ume/main.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Valgrind: r16455 - /trunk/coregrind/m_ume/main.c

svn-2
Author: tom
Date: Mon Jun 26 13:10:42 2017
New Revision: 16455

Log:
Allow setuid/setgid/setcap binaries to be run if
valgrind is running as root.

Modified:
    trunk/coregrind/m_ume/main.c

Modified: trunk/coregrind/m_ume/main.c
==============================================================================
--- trunk/coregrind/m_ume/main.c (original)
+++ trunk/coregrind/m_ume/main.c Mon Jun 26 13:10:42 2017
@@ -140,7 +140,7 @@
    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);
 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers