diff options
| author | Bruno Ribas <brunoribas@gmail.com> | 2016-11-04 18:26:17 +0000 |
|---|---|---|
| committer | Bruno Ribas <brunoribas@gmail.com> | 2016-11-04 18:26:17 +0000 |
| commit | 5826c86f877ac618b11fe439d248a3be3ee0f426 (patch) | |
| tree | fa3e94bbcd5b3c05a7c08dbb68f4be610a8fd2b5 /tools | |
| parent | 55f257b1228b3a78b0b69a42d28fe8f93b11168e (diff) | |
| download | boca-5826c86f877ac618b11fe439d248a3be3ee0f426.tar.gz boca-5826c86f877ac618b11fe439d248a3be3ee0f426.zip | |
Added tools/boca-submit-run-root-wrapper.c
Signed-off-by: Bruno Ribas <brunoribas@gmail.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/boca-submit-run-root-wrapper.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/boca-submit-run-root-wrapper.c b/tools/boca-submit-run-root-wrapper.c new file mode 100644 index 0000000..6e8ca66 --- /dev/null +++ b/tools/boca-submit-run-root-wrapper.c @@ -0,0 +1,12 @@ +#include<stdlib.h> +#include<stdio.h> +#include<sys/types.h> +#include<unistd.h> +char str[10000]; +int main(int argc, char **argv) { + if(argc != 8) return 1; + sprintf(str,"/usr/bin/boca-submit-run-root %1000s %1000s %1000s %1000s %1000s %1000s %1000s",argv[1],argv[2],argv[3],argv[4],argv[5],argv[6],argv[7]); + setuid(0); + system(str); + return 0; +} |