Clean up fuse bind mount on parent user when clone profile goes away
Currently, when fuse bpf is disabled, when clone profile gets removed,
we try to unbind mounts we created between clone profile
and parent user only on clone profile. Not unbinding mounts for parent
profile emulated volume, would keep fuse daemon of clone profile alive.
Hence, this would prevent any further mounts for the same
emulated volume of the same clone profile, as we will assume there is
already running fuse daemon.
Bug: 401029618
Test: Manual
Flag: EXEMPT bugfix
Change-Id: I0b794e488b34ee8ed110aa847344b14f305ce728
diff --git a/model/EmulatedVolume.h b/model/EmulatedVolume.h
index 0389ea7..322dd38 100644
--- a/model/EmulatedVolume.h
+++ b/model/EmulatedVolume.h
@@ -51,6 +51,7 @@
status_t unmountSdcardFs();
status_t mountFuseBindMounts();
status_t unmountFuseBindMounts();
+ status_t unbindSharedStorageMountPath();
status_t bindMountVolume(const EmulatedVolume& vol, std::list<std::string>& pathsToUnmount);