From 1c419e000eaee1758a04a5144dd07cdd20033c04 Mon Sep 17 00:00:00 2001 From: Daichi Hirono Date: Tue, 26 Jan 2016 10:27:45 +0900 Subject: [PATCH] Add context mount option for appfuse. BUG=26147865 Change-Id: I1812c46d0f80eaea9a9a3fa944bc4d0126ae8ba1 --- CommandListener.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CommandListener.cpp b/CommandListener.cpp index 8808065..863724b 100644 --- a/CommandListener.cpp +++ b/CommandListener.cpp @@ -651,7 +651,9 @@ static android::status_t mountInNamespace(uid_t uid, int device_fd, const std::s "rootmode=40000," "default_permissions," "allow_other," - "user_id=%d,group_id=%d", + "user_id=%d,group_id=%d," + "context=\"u:object_r:app_fuse_file:s0\"," + "fscontext=u:object_r:app_fusefs:s0", device_fd, uid, uid);