diff options
| author | 2016-02-02 10:14:27 +0000 | |
|---|---|---|
| committer | 2016-02-02 10:14:27 +0000 | |
| commit | 10c3d3f666bd9579e7a5e4da4363f301d6ee88c8 (patch) | |
| tree | 352a0186b126cc9cfb1436115e65041124bd5813 | |
| parent | 2a277696541e49458c132cc91ca23cb383646df2 (diff) | |
| parent | fd7d57ed28d98cd43b882d67dccbc12007c2736f (diff) | |
Merge "Mount appfuse in process namespace."
| -rw-r--r-- | services/core/java/com/android/server/MountService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/MountService.java b/services/core/java/com/android/server/MountService.java index 4a186a620cc1..3ce44526d17b 100644 --- a/services/core/java/com/android/server/MountService.java +++ b/services/core/java/com/android/server/MountService.java @@ -2817,8 +2817,9 @@ class MountService extends IMountService.Stub public ParcelFileDescriptor mountAppFuse(final String name) throws RemoteException { try { final int uid = Binder.getCallingUid(); + final int pid = Binder.getCallingPid(); final NativeDaemonEvent event = - mConnector.execute("appfuse", "mount", uid, name); + mConnector.execute("appfuse", "mount", uid, pid, name); if (event.getFileDescriptors() == null) { throw new RemoteException("AppFuse FD from vold is null."); } @@ -2830,7 +2831,7 @@ class MountService extends IMountService.Stub public void onClose(IOException e) { try { final NativeDaemonEvent event = mConnector.execute( - "appfuse", "unmount", uid, name); + "appfuse", "unmount", uid, pid, name); } catch (NativeDaemonConnectorException unmountException) { Log.e(TAG, "Failed to unmount appfuse."); } |