From 20af3e65a20db8c5cf14d0c827b340b276a781c3 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Tue, 27 Jun 2017 14:21:26 +0800 Subject: [PATCH] installd: a workaround for 9p filesystem SELinux and getxattr seem not work on 9p filesystem. Ignore the errors as a workaround. TEST: be able to boot to Home on QEMU with shared 'data' folder. --- cmds/installd/InstalldNativeService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp index 95d9377a89..4cb846220c 100644 --- a/cmds/installd/InstalldNativeService.cpp +++ b/cmds/installd/InstalldNativeService.cpp @@ -333,7 +333,7 @@ static int restorecon_app_data_lazy(const std::string& path, const std::string& } if (selinux_android_restorecon_pkgdir(path.c_str(), seInfo.c_str(), uid, 0) < 0) { PLOG(ERROR) << "Failed top-level restorecon for " << path; - goto fail; + // goto fail; } if (lgetfilecon(path.c_str(), &after) < 0) { PLOG(ERROR) << "Failed after getfilecon for " << path; @@ -567,7 +567,7 @@ binder::Status InstalldNativeService::migrateAppData(const std::optional