Skip to content

Commit

Permalink
get rid of --norc
Browse files Browse the repository at this point in the history
  • Loading branch information
aaruni96 committed Jan 10, 2025
1 parent ba344b4 commit d7f3298
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/maps
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def mode_run(args):
command = tomli.load(manifest_file)
command = command['Core']["command"]
else:
command = "bash --norc"
command = "bash"
if args.COMMAND:
command = args.COMMAND
if command == '':
Expand All @@ -293,7 +293,7 @@ def mode_run(args):
# ignore SIGINT
signal.signal(signal.SIGINT, signal.SIG_IGN)
rstatus = subprocess.run((f"{BWRAP} --forward-signals --unshare-user --unshare-pid "
f"--unshare-uts --hostname=runtime --overlay-src {DATADIR}/rofs "
f"--unshare-uts --hostname runtime --overlay-src {DATADIR}/rofs "
f"--overlay {DATADIR}/rwfs {DATADIR}/tmpfs / --bind {HOME}/Public "
f"{senv['HOME']}/Public --ro-bind /sys /sys --die-with-parent "
f"--proc /proc --dev /dev --uid 0 --gid 0 {command}").split(),
Expand Down Expand Up @@ -566,9 +566,9 @@ def mode_package(repo, repopath, args):
# ignore SIGINT
signal.signal(signal.SIGINT, signal.SIG_IGN)
rstatus = subprocess.run((f"{BWRAP} --forward-signals --unshare-user --unshare-pid "
f"--unshare-uts --hostname=runtime --bind {args.LOCATION} / "
f"--unshare-uts --hostname runtime --bind {args.LOCATION} / "
f"--proc /proc --dev /dev --ro-bind /sys /sys --die-with-parent "
f"--uid 0 --gid 0 bash --norc").split(), env=senv, check=False)
f"--uid 0 --gid 0 bash").split(), env=senv, check=False)
if VERBOSE:
print("Exiting sandbox...")
if rstatus.returncode != 0:
Expand Down

0 comments on commit d7f3298

Please sign in to comment.