リビジョン | fbeda34efd4009e43aee069b29b4f740219a7b9b (tree) |
---|---|
日時 | 2018-10-18 16:47:19 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
コミッター | Chih-Wei Huang |
pm: ignore restorecon failure
On the 9p filesystem, restorecon won't work. It causes apk can't be
installed. Just ignore the errors to workaround it.
@@ -663,7 +663,7 @@ public class PackageInstallerService extends IPackageInstaller.Stub { | ||
663 | 663 | } |
664 | 664 | |
665 | 665 | if (!SELinux.restorecon(stageDir)) { |
666 | - throw new IOException("Failed to restorecon session dir: " + stageDir); | |
666 | + Slog.e(TAG, "Failed to restorecon session dir: " + stageDir); | |
667 | 667 | } |
668 | 668 | } |
669 | 669 |
@@ -16996,7 +16996,6 @@ public class PackageManagerService extends IPackageManager.Stub | ||
16996 | 16996 | |
16997 | 16997 | if (!SELinux.restoreconRecursive(afterCodeFile)) { |
16998 | 16998 | Slog.w(TAG, "Failed to restorecon"); |
16999 | - return false; | |
17000 | 16999 | } |
17001 | 17000 | |
17002 | 17001 | // Reflect the rename internally |