diff options
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/updates/SELinuxPolicyInstallReceiver.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/services/java/com/android/server/updates/SELinuxPolicyInstallReceiver.java b/services/java/com/android/server/updates/SELinuxPolicyInstallReceiver.java index 5dd30f1..e430814 100644 --- a/services/java/com/android/server/updates/SELinuxPolicyInstallReceiver.java +++ b/services/java/com/android/server/updates/SELinuxPolicyInstallReceiver.java @@ -125,25 +125,11 @@ public class SELinuxPolicyInstallReceiver extends ConfigUpdateInstallReceiver { SystemProperties.set("selinux.reload_policy", "1"); } - private void setEnforcingMode(Context context) { - String mode = Settings.Global.getString(context.getContentResolver(), - Settings.Global.SELINUX_STATUS); - if ("1".equals(mode)) { - Slog.i(TAG, "Setting enforcing mode"); - SystemProperties.set("persist.selinux.enforcing", mode); - } else if ("0".equals(mode)) { - Slog.i(TAG, "Tried to set permissive mode, ignoring"); - } else { - Slog.e(TAG, "Got invalid enforcing mode: " + mode); - } - } - @Override protected void postInstall(Context context, Intent intent) { try { unpackBundle(); applyUpdate(); - setEnforcingMode(context); } catch (IllegalArgumentException e) { Slog.e(TAG, "SELinux policy update malformed: ", e); } catch (IOException e) { |