aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-05 12:25:41 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-05 12:25:41 +0000
commit9fe4c83ae53617203acd3fc602b574ee399c9a4e (patch)
treedece774edd7c7b55ffd61e98fc8bbb12ed4beb82 /src/vpn
parent2158963e722a42fd436407611cc817c04c2fd5e6 (diff)
downloadgnunet-9fe4c83ae53617203acd3fc602b574ee399c9a4e.tar.gz
gnunet-9fe4c83ae53617203acd3fc602b574ee399c9a4e.zip
-fix libexec issue: SUID check
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-service-vpn.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c
index 5e1452bec..1a46f0b5e 100644
--- a/src/vpn/gnunet-service-vpn.c
+++ b/src/vpn/gnunet-service-vpn.c
@@ -3057,16 +3057,21 @@ run (void *cls,
3057 char *ipv4mask; 3057 char *ipv4mask;
3058 struct in_addr v4; 3058 struct in_addr v4;
3059 struct in6_addr v6; 3059 struct in6_addr v6;
3060 char *binary;
3061
3062 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-vpn");
3060 3063
3061 if (GNUNET_YES != 3064 if (GNUNET_YES !=
3062 GNUNET_OS_check_helper_binary ("gnunet-helper-vpn")) 3065 GNUNET_OS_check_helper_binary (binary))
3063 { 3066 {
3064 fprintf (stderr, 3067 fprintf (stderr,
3065 "`%s' is not SUID, refusing to run.\n", 3068 "`%s' is not SUID, refusing to run.\n",
3066 "gnunet-helper-vpn"); 3069 "gnunet-helper-vpn");
3070 GNUNET_free (binary);
3067 global_ret = 1; 3071 global_ret = 1;
3068 return; 3072 return;
3069 } 3073 }
3074 GNUNET_free (binary);
3070 cfg = cfg_; 3075 cfg = cfg_;
3071 stats = GNUNET_STATISTICS_create ("vpn", cfg); 3076 stats = GNUNET_STATISTICS_create ("vpn", cfg);
3072 if (GNUNET_OK != 3077 if (GNUNET_OK !=