Skip to content

Commit

Permalink
Adapt to bwrap options
Browse files Browse the repository at this point in the history
  • Loading branch information
aaruni96 committed Feb 5, 2024
1 parent f12297a commit 648e4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/maps
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def mode_run(args):
senv["LC_ALL"] = "C"
# ignore SIGINT
signal.signal(signal.SIGINT, signal.SIG_IGN)
rstatus = subprocess.run((f"{BWRAP} --no-int-term --unshare-user --unshare-pid "
rstatus = subprocess.run((f"{BWRAP} --forward-signals --unshare-user --unshare-pid "
f"--bind {DATADIR}/live / --bind {HOME}/Public {senv['HOME']}/Public"
" --die-with-parent --proc /proc --dev /dev --uid 0 --gid 0 "
f"{command}").split(),
Expand Down Expand Up @@ -455,7 +455,7 @@ def mode_package(repo, args):
senv["LC_ALL"] = "C"
# ignore SIGINT
signal.signal(signal.SIGINT, signal.SIG_IGN)
rstatus = subprocess.run([BWRAP, "--no-int-term", "--unshare-user", "--unshare-pid",
rstatus = subprocess.run([BWRAP, "--forward-signals", "--unshare-user", "--unshare-pid",
"--bind", args.LOCATION, "/", "--proc", "/proc", "--dev", "/dev",
"--die-with-parent", "--uid", "0", "--gid", "0", "bash",
"--norc"],
Expand Down

0 comments on commit 648e4cc

Please sign in to comment.