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

Commit e87ce9fe authored by Stephen Smalley's avatar Stephen Smalley Committed by Ricardo Cerqueira
Browse files

Added SELinux enforcing status and booleans keys to secure system settings.

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: I01f2a9084dfe7886087b1497070b0d7f2ad8474e
parent e6a33724
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -4274,6 +4274,25 @@ public final class Settings {
        // TODO: 881807
        public static final String SETTINGS_CLASSNAME = "settings_classname";

        /**
         * SELinux enforcing status.
         * 1 - SELinux is in enforcing mode.
         * 0 - SELinux is in permissive mode.
         *
         * @hide
         */
        public static final String SELINUX_ENFORCING = "selinux_enforcing";

        /**
         * Stores the values of the SELinux booleans. Stored as a comma
         * seperated list of values, each value being of the form
         * {@code boolean_name:value} where value is 1 if the boolean is set
         * and 0 otherwise. Example: {@code bool1:1,bool2:0}.
         *
         * @hide
         */
        public static final String SELINUX_BOOLEANS = "selinux_booleans";

        /**
         * @deprecated Use {@link android.provider.Settings.Global#USB_MASS_STORAGE_ENABLED} instead
         */
@@ -5078,6 +5097,8 @@ public final class Settings {
            TOUCH_EXPLORATION_ENABLED,
            ACCESSIBILITY_ENABLED,
            ACCESSIBILITY_SPEAK_PASSWORD,
            SELINUX_ENFORCING,
            SELINUX_BOOLEANS,
            TTS_USE_DEFAULTS,
            TTS_DEFAULT_RATE,
            TTS_DEFAULT_PITCH,