diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-07 16:02:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-07 16:02:57 +0000 |
commit | 9e7b81a3cbc81c555811c2a9386e340570612f36 (patch) | |
tree | dd0302e4a65278c26fc2f0d16853c254941d247d /src/include | |
parent | 1c5ace41aa144afd32221db565c6f627765afdd0 (diff) | |
download | gnunet-9e7b81a3cbc81c555811c2a9386e340570612f36.tar.gz gnunet-9e7b81a3cbc81c555811c2a9386e340570612f36.zip |
move SUID test code to util
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_os_lib.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h index 7bd65adcb..85d666892 100644 --- a/src/include/gnunet_os_lib.h +++ b/src/include/gnunet_os_lib.h | |||
@@ -282,6 +282,22 @@ GNUNET_OS_install_parent_control_handler (void *cls, | |||
282 | const struct | 282 | const struct |
283 | GNUNET_SCHEDULER_TaskContext * tc); | 283 | GNUNET_SCHEDULER_TaskContext * tc); |
284 | 284 | ||
285 | |||
286 | /** | ||
287 | * Check whether the suid bit is set on a file. Attempts to find the | ||
288 | * file using the current PATH environment variable as a search path. | ||
289 | * On W32, if the binary exists, this function tests if we are running | ||
290 | * with administrative rights (sufficient to create RAW sockets). | ||
291 | * | ||
292 | * @param binary the name of the file to check | ||
293 | * @return GNUNET_YES if the file is SUID, | ||
294 | * GNUNET_NO if not, | ||
295 | * GNUNET_SYSERR on error | ||
296 | */ | ||
297 | int | ||
298 | GNUNET_OS_check_helper_binary (const char *binary); | ||
299 | |||
300 | |||
285 | #if 0 /* keep Emacsens' auto-indent happy */ | 301 | #if 0 /* keep Emacsens' auto-indent happy */ |
286 | { | 302 | { |
287 | #endif | 303 | #endif |