Skip to content

Commit

Permalink
Use list.extend
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed May 8, 2024
1 parent 4739419 commit fec50f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,9 +902,7 @@ def run_in_sandbox(cmd: list[str], env: dict[str, str]=None) -> int:
for path in Path("/").glob("*"):
if path.name != "home":
posix_path = path.as_posix()
rootfs.append("--ro-bind")
rootfs.append(posix_path)
rootfs.append(posix_path)
rootfs.extend(["--ro-bind", posix_path, posix_path])

# Unshare all namespaces except the network
opts = [
Expand Down

0 comments on commit fec50f6

Please sign in to comment.