Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hpc
gekkofs
Commits
48beba1f
Verified
Commit
48beba1f
authored
Jun 20, 2022
by
Marc Vef
Browse files
Adding syscall intercept patch for supporting the clone3() syscall
parent
0c19a688
Pipeline
#2771
failed with stages
in 13 minutes and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/patches/syscall_intercept_clone3.patch
0 → 100644
View file @
48beba1f
diff --git a/src/intercept.c b/src/intercept.c
index 41fd95d..c0cd865 100644
--- a/src/intercept.c
+++ b/src/intercept.c
@@ -689,7 +689,8 @@
intercept_routine(struct context *context)
* the clone_child_intercept_routine instead, executing
* it on the new child threads stack, then returns to libc.
*/
- if (desc.nr == SYS_clone && desc.args[1] != 0)
+ if ((desc.nr == SYS_clone || desc.nr == SYS_clone3) &&
+ desc.args[1] != 0)
return (struct wrapper_ret){
.rax = context->rax, .rdx = 2 };
else
scripts/profiles/0.9.1/default.specs
View file @
48beba1f
...
...
@@ -60,7 +60,7 @@ clonedeps_args=(
# Patches that should be applied post-clone
clonedeps_patches=(
["syscall_intercept"]="syscall_intercept.patch"
["syscall_intercept"]="syscall_intercept.patch
syscall_intercept_clone3.patch
"
)
# Ordering that MUST be followed when downloading
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment