am 20642ae7: Give secondary users read-only physical cards.
* commit '20642ae71aa93ec2658d09c92a1ffc3844f5a555':
Give secondary users read-only physical cards.
diff --git a/PublicVolume.cpp b/PublicVolume.cpp
index 29a357f..762eb04 100644
--- a/PublicVolume.cpp
+++ b/PublicVolume.cpp
@@ -149,6 +149,7 @@
if (execl(kFusePath, kFusePath,
"-u", "1023", // AID_MEDIA_RW
"-g", "1023", // AID_MEDIA_RW
+ "-U", std::to_string(getMountUserId()).c_str(),
"-w",
mRawPath.c_str(),
stableName.c_str(),
@@ -159,6 +160,7 @@
if (execl(kFusePath, kFusePath,
"-u", "1023", // AID_MEDIA_RW
"-g", "1023", // AID_MEDIA_RW
+ "-U", std::to_string(getMountUserId()).c_str(),
mRawPath.c_str(),
stableName.c_str(),
NULL)) {