-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add namespace support to Linux sandbox
The previous Linux sandbox would allow for access of abstract namespace sockets and handled network sandboxing through fragile seccomp rules. To both simplify the code and improve our sandboxing, this patch introduces the usage of Linux namespaces to both clear the abstract namespace and create a network namespace. It is now necessary to always lock down the sandbox in a newly created process, since user namespaces cannot be created from multi-threaded applications and require writing to `/proc/self/*id_map` exactly once (every following write from the same process is a permission error). This patch completely removes all seccomp code, however some part of it might still be useful for future sandboxing improvements.
- Loading branch information
Showing
12 changed files
with
152 additions
and
605 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
Oops, something went wrong.