-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hooks to run code in the child process before and after setting up the sandbox #37
Open
rocallahan
wants to merge
10
commits into
servo:main
Choose a base branch
from
Pernosco:before_exec
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on Sep 29, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 3a55e27 - Browse repository at this point
Copy the full SHA 3a55e27View commit details -
Fix bug when launching multiple children
Parallelizing the forbidden_syscalls test exposes the bug and also reduces test time on my 4-core Skylake laptop: Before: [roc@glory gaol]$ time target/debug/deps/forbidden_syscalls-6fdc4dd40a646c6f real 0m41.322s user 0m0.590s sys 0m1.452s After: [roc@glory gaol]$ time target/debug/deps/forbidden_syscalls-6fdc4dd40a646c6f real 0m14.915s user 0m0.248s sys 0m0.980s
Configuration menu - View commit details
-
Copy full SHA for f3cede2 - Browse repository at this point
Copy the full SHA f3cede2View commit details -
Configuration menu - View commit details
-
Copy full SHA for adcde28 - Browse repository at this point
Copy the full SHA adcde28View commit details -
Allow arch_prctl GET/SET_FS/GS
glibc uses this during process startup.
Configuration menu - View commit details
-
Copy full SHA for 3607477 - Browse repository at this point
Copy the full SHA 3607477View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6065617 - Browse repository at this point
Copy the full SHA 6065617View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6da6b3 - Browse repository at this point
Copy the full SHA c6da6b3View commit details -
Sandboxed processes should be able to use these to reduce their limits. In a future commit we will turn all soft limits into hard limits so it's impossible for a sandboxed child to increase any of its limits. glibc uses prlimit64 during startup.
Configuration menu - View commit details
-
Copy full SHA for 43930e6 - Browse repository at this point
Copy the full SHA 43930e6View commit details -
Allow getting the current time
time/gettimeofday are generally called through the vDSO without entering the kernel so blocking them with seccomp doesn't really work anyway. Having sandboxed children fail only when the vDSO is disabled (e.g. when running under rr) is a problem.
Configuration menu - View commit details
-
Copy full SHA for 4ab80ac - Browse repository at this point
Copy the full SHA 4ab80acView commit details -
Support before_sandbox/before_exec callbacks to set up subprocess env…
…ironment This commit is a bit oversized... adding support for these callbacks required creating a way to pass errors back to the parent process, which inspired fixing the error handling in start(), which uncovered some bugs in start(): * Immediate child process leaked as a zombie * pipe_fds[0] leaked in parent * pipe_fds[1] leaked into grandchild
Configuration menu - View commit details
-
Copy full SHA for 7502de7 - Browse repository at this point
Copy the full SHA 7502de7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07761bc - Browse repository at this point
Copy the full SHA 07761bcView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.