[core] Remove SELinux permissive check
This commit is contained in:
parent
1d10cf4760
commit
0409f3af97
|
|
@ -83,10 +83,6 @@ public class ConfigManager {
|
|||
private static final File miscFile = new File(basePath, "misc_path");
|
||||
private String miscPath = null;
|
||||
|
||||
private static final File selinuxPath = new File("/sys/fs/selinux/enforce");
|
||||
// only check on boot
|
||||
private final boolean isPermissive;
|
||||
|
||||
private static final File logPath = new File(basePath, "log");
|
||||
private static final File modulesLogPath = new File(logPath, "modules.log");
|
||||
private static final File verboseLogPath = new File(logPath, "all.log");
|
||||
|
|
@ -275,7 +271,6 @@ public class ConfigManager {
|
|||
|
||||
createTables();
|
||||
updateConfig();
|
||||
isPermissive = readInt(selinuxPath, 1) == 0;
|
||||
// must ensure cache is valid for later usage
|
||||
updateCaches(true);
|
||||
}
|
||||
|
|
@ -564,10 +559,6 @@ public class ConfigManager {
|
|||
this.verboseLog = verboseLog;
|
||||
}
|
||||
|
||||
public boolean isPermissive() {
|
||||
return isPermissive;
|
||||
}
|
||||
|
||||
public boolean resourceHook() {
|
||||
return resourceHook;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,11 +117,6 @@ public class LSPManagerService extends ILSPManagerService.Stub {
|
|||
ConfigManager.getInstance().setVerboseLog(enabled);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPermissive() {
|
||||
return ConfigManager.getInstance().isPermissive();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ParcelFileDescriptor getVerboseLog() {
|
||||
return ConfigManager.getInstance().getVerboseLog();
|
||||
|
|
|
|||
Loading…
Reference in New Issue