aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorlurchi <lurchi@strangeplace.net>2019-06-29 12:56:33 +0200
committerlurchi <lurchi@strangeplace.net>2019-06-29 12:56:33 +0200
commit8073ee2c2c7d76447790907e1e9af099c5011d5b (patch)
treeff38aec39565ae17ac21c01de10c59fc69246e8c /src/include
parentdec6cf00dfa65bf1607c0cfcd80f2170d533b02b (diff)
downloadgnunet-8073ee2c2c7d76447790907e1e9af099c5011d5b.tar.gz
gnunet-8073ee2c2c7d76447790907e1e9af099c5011d5b.zip
introduce GNUNET_OS_get_suid_binary_path
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_os_lib.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h
index 285dfb68d..6eb4ce5eb 100644
--- a/src/include/gnunet_os_lib.h
+++ b/src/include/gnunet_os_lib.h
@@ -318,6 +318,23 @@ GNUNET_OS_get_libexec_binary_path (const char *progname);
318 318
319 319
320/** 320/**
321 * Given the name of a helper, service or daemon binary construct the full
322 * path to the binary using the SUID_BINARY_PATH in the PATHS section of the
323 * configuration. If that option is not present, fall back to
324 * GNUNET_OS_get_libexec_binary_path. If @a progname is an absolute path, a
325 * copy of this path is returned.
326 *
327 * @param cfg configuration to inspect
328 * @param progname name of the binary
329 * @return full path to the binary, if possible, a copy of @a progname
330 * otherwise
331 */
332char *
333GNUNET_OS_get_suid_binary_path (const struct GNUNET_CONFIGURATION_Handle *cfg,
334 const char *progname);
335
336
337/**
321 * Callback function invoked for each interface found. 338 * Callback function invoked for each interface found.
322 * 339 *
323 * @param cls closure 340 * @param cls closure