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

Commit 903d5086 authored by Alan Stokes's avatar Alan Stokes Committed by Automerger Merge Worker
Browse files

Merge "Run restorecon on new profile directories." am: 2705d04f

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1523799

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5c5a7dfbb7b7eeac9ed2f3ed522cd5e008207419
parents 3bb90bc6 2705d04f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -398,6 +398,10 @@ static bool prepare_app_profile_dir(const std::string& packageName, int32_t appI
        PLOG(ERROR) << "Failed to prepare " << profile_dir;
        return false;
    }
    if (selinux_android_restorecon(profile_dir.c_str(), 0)) {
        PLOG(ERROR) << "Failed to restorecon " << profile_dir;
        return false;
    }

    const std::string ref_profile_path =
            create_primary_reference_profile_package_dir_path(packageName);