diff options
author | Robosky | 2019-02-05 18:02:29 +0800 |
---|---|---|
committer | Robosky | 2019-02-05 18:02:29 +0800 |
commit | 1352d1933ec43874f794ebec26676c25ad4ef6f1 (patch) | |
tree | 61ea36d09372213f615eb838d0432e4300177826 /anbox-bridge.c | |
download | aur-anbox-bridge.tar.gz |
First Push
Diffstat (limited to 'anbox-bridge.c')
-rw-r--r-- | anbox-bridge.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/anbox-bridge.c b/anbox-bridge.c new file mode 100644 index 000000000000..5077f03eb3ca --- /dev/null +++ b/anbox-bridge.c @@ -0,0 +1,13 @@ +#include <stdio.h> +#include <unistd.h> +#include <stdlib.h> +#include <errno.h> + +int main(void) +{ + setuid(0); + + char buf[512]; + sprintf(buf, "/usr/lib/anbox/anbox-bridge.sh %s", "start"); + system((char *)buf); +} |