objectstore: use private bind mounts for get()
Use `--make-private` for the bind mount in `ObjectStore.get`.
This commit is contained in:
parent
9b61f50792
commit
e610fa9659
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ class ObjectStore:
|
|||
with self.tempdir() as tmp:
|
||||
if object_id:
|
||||
path = self.resolve_ref(object_id)
|
||||
subprocess.run(["mount", "-o", "bind,ro,mode=0755", path, tmp], check=True)
|
||||
subprocess.run(["mount", "--make-private", "-o", "bind,ro,mode=0755", path, tmp], check=True)
|
||||
try:
|
||||
yield tmp
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue