seLinuxEnforcingNotEnabled

Determine if seLinux enforcing is not enabled.


🔑 Minimum required license level: Core.


Sample usage

try {
val systemDiagnostic = rasp.diagnostic.system
val seLinuxEnforcingNotEnabled = systemDiagnostic.seLinuxEnforcingNotEnabled()
Log.d("RASP-DEMO", "seLinuxEnforcingNotEnabled: $seLinuxEnforcingNotEnabled")
} catch (e: Exception) {
Log.e("RASP-DEMO", "[systemDiagnostic] seLinuxEnforcingNotEnabled error: ${e.message}")
}


To observe changes of this function. You can use the observe() method.

val systemNetwork = rasp.watcher.system.observe()
launch {
systemModel.seLinuxEnforcingNotEnabled.collect { detected ->
if (detected != null && detected) {
Log.d("RASP-DEMO", "[seLinuxEnforcingNotEnabled] $detected")
}
}

Return

Boolean — true if seLinux enforcing is not currently detected.