diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2013-12-02 14:38:31 -0500 |
---|---|---|
committer | Stephen Smalley <sds@tycho.nsa.gov> | 2013-12-02 14:38:31 -0500 |
commit | 856df42a5a13d9aad288e6cddabde8f2f36356fb (patch) | |
tree | d7f87b9041a9441579c512f3de7ac6b3ee46d648 /services | |
parent | f226bc606af9ce5aceff6b05fc4b0200c94cb248 (diff) | |
download | frameworks_base-856df42a5a13d9aad288e6cddabde8f2f36356fb.zip frameworks_base-856df42a5a13d9aad288e6cddabde8f2f36356fb.tar.gz frameworks_base-856df42a5a13d9aad288e6cddabde8f2f36356fb.tar.bz2 |
Remove setEnforcingMode from SELinuxPolicyInstallReceiver.
It never worked anyhow, at least in AOSP, as nothing checks that property,
and is pointless now that enforcing mode is set by init.
Change-Id: If05dd49963c5d7081e00039b5e378032bea0939b
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
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) { |