-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#909 early execve: implements early injection across execve
Previously, even if the parent was invoked with -early_inject, any subsequent execve was injected into using LD_PRELOAD. This CL implements early injection across execve by substituting the libdynamorio.so path for the app's target path (which requires adding new filepath buffers). We also replace its argv[0] if it's /proc/self/exe. It turns out that our unsetenv during init shifts the env entries and messes up ld.so's access to auxv. We have to change those calls to a new routine disable_env() which leaves the entries in place but changes their names. The linux.readlink test functions as a regression test for this. Fixes #909 Review-URL: https://codereview.appspot.com/213290043
- Loading branch information
1 parent
bee00b5
commit b7af570
Showing
7 changed files
with
127 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters