Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2baccc4 authored by Jeffrey Vander Stoep's avatar Jeffrey Vander Stoep Committed by Android (Google) Code Review
Browse files

Merge "Installd: restorecon mislabeled gsf" into sc-dev

parents cda04d4f 9c4f39e9
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -342,7 +342,8 @@ static int restorecon_app_data_lazy(const std::string& path, const std::string&


    // If the initial top-level restorecon above changed the label, then go
    // If the initial top-level restorecon above changed the label, then go
    // back and restorecon everything recursively
    // back and restorecon everything recursively
    if (strcmp(before, after)) {
    // TODO(b/190567190, b/188141923) Remove recursive fixup of com.google.android.gsf.
    if (strcmp(before, after) || (path.find("com.google.android.gsf") != std::string::npos)) {
        if (existing) {
        if (existing) {
            LOG(DEBUG) << "Detected label change from " << before << " to " << after << " at "
            LOG(DEBUG) << "Detected label change from " << before << " to " << after << " at "
                    << path << "; running recursive restorecon";
                    << path << "; running recursive restorecon";