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/util/os_priority.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/util/os_priority.c')
-rw-r--r-- | src/util/os_priority.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/os_priority.c b/src/util/os_priority.c index b8b854963..e86de968a 100644 --- a/src/util/os_priority.c +++ b/src/util/os_priority.c | |||
@@ -634,7 +634,7 @@ start_process (int pipe_control, | |||
634 | int fd_stdin_read; | 634 | int fd_stdin_read; |
635 | int fd_stdin_write; | 635 | int fd_stdin_write; |
636 | 636 | ||
637 | if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary (filename)) | 637 | if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary (filename, FALSE, NULL)) |
638 | return NULL; /* not executable */ | 638 | return NULL; /* not executable */ |
639 | if (GNUNET_YES == pipe_control) | 639 | if (GNUNET_YES == pipe_control) |
640 | { | 640 | { |
@@ -865,7 +865,7 @@ start_process (int pipe_control, | |||
865 | BOOL bresult; | 865 | BOOL bresult; |
866 | DWORD error_code; | 866 | DWORD error_code; |
867 | 867 | ||
868 | if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary (filename)) | 868 | if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary (filename, FALSE, NULL)) |
869 | return NULL; /* not executable */ | 869 | return NULL; /* not executable */ |
870 | 870 | ||
871 | /* Search in prefix dir (hopefully - the directory from which | 871 | /* Search in prefix dir (hopefully - the directory from which |