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

Commit 9ca52e34 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am a2307aef: Only restorecon_data once for all users.

* commit 'a2307aef':
  Only restorecon_data once for all users.
parents 59d6f2c3 a2307aef
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -257,12 +257,12 @@ int copy_complete_app(const char *from_uuid, const char *to_uuid,
                    << ": status " << rc;
            goto fail;
        }
    }

        if (restorecon_data(to_uuid, package_name, seinfo, uid) != 0) {
            LOG(ERROR) << "Failed to restorecon " << to;
    if (restorecon_data(to_uuid, package_name, seinfo, multiuser_get_uid(0, appid)) != 0) {
        LOG(ERROR) << "Failed to restorecon";
        goto fail;
    }
    }

    // We let the framework scan the new location and persist that before
    // deleting the data in the old location; this ordering ensures that