DynamoRIO / DynamoRIO/dynamorio

In emulation of execve DynamoRIO does not check that file is executable

Open
#2,090 0 comments 0 reactions 0 assignees View on GitHub
OpSys-Linux
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 18h
Merged PRs (30d)
30

Description

```
$ cat > prog.c <<'EOF'
#include
#include

int main(int argc, char *argv[])
{
printf("Running %s\n", argv[0]);
if (argv[1] != NULL)
if (execv(argv[1], argv + 1))
perror("execv");
return 0;
}
EOF
$ gcc -Wall -O2 prog.c -o prog1
$ cp prog1 prog2
$ chmod -x prog2
$ ./prog1 prog2
Running ./prog1
execv: Permission denied
$ bin64/drrun -- ./prog1 prog2
Running ./prog1
Running prog2
$
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.