Skip to content
Snippets Groups Projects

Mount a new tmpfs on /tmp and drop all capabilities

Closed madaidan requested to merge madaidan/mat2:bubblewrap into master
Files
2
+ 2
0
@@ -51,6 +51,7 @@ def _get_bwrap_args(tempdir: str,
['--dev', '/dev',
'--proc', '/proc',
'--chdir', cwd,
'--tmpfs', '/tmp',
'--unshare-user-try',
'--unshare-ipc',
'--unshare-pid',
@@ -58,6 +59,7 @@ def _get_bwrap_args(tempdir: str,
'--unshare-uts',
'--unshare-cgroup-try',
'--new-session',
'--cap-drop', 'all',
# XXX: enable --die-with-parent once all supported platforms have
# a bubblewrap recent enough to support it.
# '--die-with-parent',
Loading