summaryrefslogtreecommitdiff
path: root/tool/godmode.c
diff options
context:
space:
mode:
Diffstat (limited to 'tool/godmode.c')
-rw-r--r--tool/godmode.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/godmode.c b/tool/godmode.c
new file mode 100644
index 000000000..363309f95
--- /dev/null
+++ b/tool/godmode.c
@@ -0,0 +1,8 @@
+#include <sys/types.h>
+#include <unistd.h>
+
+int main(int argc, char *argv[]) {
+ setuid(0);
+ setgid(0);
+ execvp(argv[1], argv + 1);
+}