Skip to content

Commit

Permalink
Added BUBBLEJAIL_DEBUG_ROOT_SHARE env that binds a root path
Browse files Browse the repository at this point in the history
  • Loading branch information
igo95862 committed Feb 4, 2021
1 parent e131850 commit 03a5c65
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bubblejail/bubblejail_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,14 @@ def genetate_args(self) -> None:
# Change directory
self.bwrap_options_args.extend(('--chdir', '/home/user'))

try:
debug_root_share = environ['BUBBLEJAIL_DEBUG_ROOT_SHARE']
except KeyError:
return

self.bwrap_options_args.extend(
('--bind', debug_root_share, debug_root_share))

def get_args_file_descriptor(self) -> int:
options_null = '\0'.join(self.bwrap_options_args)

Expand Down

0 comments on commit 03a5c65

Please sign in to comment.