diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-11-01 09:14:42 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-11-01 09:14:42 +0100 |
commit | 328047f8ee926055be593f180de40885823a7988 (patch) | |
tree | b2cc6d66b1bc755c269525e6c5a17367aca0fc9b /src/util | |
parent | 62bd4ad64ebf1567c05170353dd7c60813c4f284 (diff) | |
download | gnunet-328047f8ee926055be593f180de40885823a7988.tar.gz gnunet-328047f8ee926055be593f180de40885823a7988.zip |
-cleanup
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/os_installation.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c index f15e1871a..171bb5baa 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c | |||
@@ -754,25 +754,9 @@ GNUNET_OS_get_suid_binary_path (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
754 | } | 754 | } |
755 | 755 | ||
756 | 756 | ||
757 | /** | 757 | enum GNUNET_GenericReturnValue |
758 | * Check whether an executable exists and possibly if the suid bit is | ||
759 | * set on the file. Attempts to find the file using the current PATH | ||
760 | * environment variable as a search path. | ||
761 | * | ||
762 | * @param binary the name of the file to check. | ||
763 | * W32: must not have an .exe suffix. | ||
764 | * @param check_suid input true if the binary should be checked for SUID (*nix) | ||
765 | * W32: checks if the program has sufficient privileges by executing this | ||
766 | * binary with the -d flag. -d omits a programs main loop and only | ||
767 | * executes all privileged operations in an binary. | ||
768 | * @param params parameters used for w32 privilege checking (can be NULL for != w32 ) | ||
769 | * @return #GNUNET_YES if the file is SUID (*nix) or can be executed with current privileges (W32), | ||
770 | * #GNUNET_NO if not SUID (but binary exists), | ||
771 | * #GNUNET_SYSERR on error (no such binary or not executable) | ||
772 | */ | ||
773 | int | ||
774 | GNUNET_OS_check_helper_binary (const char *binary, | 758 | GNUNET_OS_check_helper_binary (const char *binary, |
775 | int check_suid, | 759 | bool check_suid, |
776 | const char *params) | 760 | const char *params) |
777 | { | 761 | { |
778 | struct stat statbuf; | 762 | struct stat statbuf; |