summaryrefslogtreecommitdiff
path: root/scripts/runclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runclient.c')
-rw-r--r--scripts/runclient.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/runclient.c b/scripts/runclient.c
new file mode 100644
index 0000000..d0e4213
--- /dev/null
+++ b/scripts/runclient.c
@@ -0,0 +1,13 @@
+#include<stdio.h>
+
+int main(int argc, char *argv[])
+{
+ char *args[1];
+
+ args[0] = NULL;
+
+ setuid(0);
+ setgid(0);
+
+ execv("/www/scripts/clientcerts.php", args);
+}