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

Commit 8f01151e authored by Richard Uhler's avatar Richard Uhler
Browse files

Don't disable RollbackManagerService when selinux is enforcing.

Now that selinux policy for rollback manager is in place.

Test: device boots
Test: atest RollbackTest
Bug: 112431924
Change-Id: I6f8bb3bd98390575450649ce23d848ce1f91f0db
parent caa6519f
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -17,8 +17,6 @@
package com.android.server.rollback;

import android.content.Context;
import android.os.SELinux;
import android.util.Log;

import com.android.server.SystemService;

@@ -30,8 +28,6 @@ import com.android.server.SystemService;
 */
public final class RollbackManagerService extends SystemService {

    private static final String TAG = "RollbackManager";

    private RollbackManagerServiceImpl mService;

    public RollbackManagerService(Context context) {
@@ -41,12 +37,6 @@ public final class RollbackManagerService extends SystemService {
    @Override
    public void onStart() {
        mService = new RollbackManagerServiceImpl(getContext());

        // TODO: Set up sepolicy to allow publishing the service.
        if (SELinux.isSELinuxEnforced()) {
            Log.w(TAG, "RollbackManager disabled pending selinux policy updates");
        } else {
        publishBinderService(Context.ROLLBACK_SERVICE, mService);
    }
}
}