-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #23: Improve jail for git/shell kernels.
* Now shell's job control (e.g., Ctrl+Z) works correctly. - It uses PTRACE_SEIZE instead of PTRACE_ATTACH/PTRACE_TRACEME to handle group-stop scenarios properly. (introduce Linux kernel 3.4 or later) - Improved jail and intra-jail synchronization on startup. * Optimized the tracer loop of jail so that it uses only one goroutine to monitor child signals. (No more recreation for every signal!) * Set TERM environment variable and let jail keep it. * Know problem: - To allow self-stopping in intra-jail, I had to allow "kill" syscall blindly. Killing pid 1 is prevented by Docker but killing the jail is allowed. Fortunately, the other parts of Sorna API service handles this situation well, notifying server termination to the user without leaking coroutines. - If we could remove already-installed seccomp filters in runtime then we can solve the above problem.
- Loading branch information
Showing
9 changed files
with
418 additions
and
196 deletions.
There are no files selected for viewing
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
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
Oops, something went wrong.