diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-04-15 12:36:37 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-04-15 12:36:37 +0000 |
commit | ad68ae150f17cf6e0b2c605c9331cf0aedfce1d0 (patch) | |
tree | 9079e9ce1b942683e45f2f5212fe2f9ce1bd5d56 /src/pt/test_gns_vpn.c | |
parent | fbda84a3f00a667f4b149f00f9a7d330e5db54a8 (diff) | |
download | gnunet-ad68ae150f17cf6e0b2c605c9331cf0aedfce1d0.tar.gz gnunet-ad68ae150f17cf6e0b2c605c9331cf0aedfce1d0.zip |
extended the GNUNET_OS_check_helper_binary parameters to do previlege
checking in windows. To do so, tested binaries must still be supplied
with valid commandline arguments, but on windows gnunet will utilize the
-d flag to run the programs initialization phase or privileged
operations only. In these modes, a program will not enter its mainloop
or communicate with the outside.
updated relevant function calls gnunet-wide to meet the extended
function parameters.
Diffstat (limited to 'src/pt/test_gns_vpn.c')
-rw-r--r-- | src/pt/test_gns_vpn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pt/test_gns_vpn.c b/src/pt/test_gns_vpn.c index 6fe1e63a2..0ae875d0f 100644 --- a/src/pt/test_gns_vpn.c +++ b/src/pt/test_gns_vpn.c | |||
@@ -543,11 +543,11 @@ main (int argc, char *const *argv) | |||
543 | bin_dns = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-dns"); | 543 | bin_dns = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-dns"); |
544 | if ( (0 != geteuid ()) && | 544 | if ( (0 != geteuid ()) && |
545 | ( (GNUNET_YES != | 545 | ( (GNUNET_YES != |
546 | GNUNET_OS_check_helper_binary (bin_vpn)) || | 546 | GNUNET_OS_check_helper_binary (bin_vpn, TRUE, NULL)) || |
547 | (GNUNET_YES != | 547 | (GNUNET_YES != |
548 | GNUNET_OS_check_helper_binary (bin_exit)) || | 548 | GNUNET_OS_check_helper_binary (bin_exit, TRUE, NULL)) || |
549 | (GNUNET_YES != | 549 | (GNUNET_YES != |
550 | GNUNET_OS_check_helper_binary (bin_dns))) ) | 550 | GNUNET_OS_check_helper_binary (bin_dns, TRUE, NULL))) ) |
551 | { | 551 | { |
552 | fprintf (stderr, | 552 | fprintf (stderr, |
553 | "WARNING: gnunet-helper-{exit,vpn,dns} binaries in $PATH are not SUID, refusing to run test (as it would have to fail).\n"); | 553 | "WARNING: gnunet-helper-{exit,vpn,dns} binaries in $PATH are not SUID, refusing to run test (as it would have to fail).\n"); |