Wirekit Interface #2
Labels
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: YJN/rewire#2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wirekits implement an "init" function that takes as parameter a pointer to a collection of syscall hooks (and additional context data). The first 1024 or so are in an array, the others in a binary search tree. During initialization, provided functions can be used to add hooks.
Next, a "run" function is called with the provided command line arguments. A provided function can be used to make "rewire" run a command in the adjusted environment. A call to this function should typically be the last step in "run".
Each hook takes a process control block pointer as argument. Additional functions are provided to e.g. interact with tracee memory.