[core] Remove SELinux permissive check

This commit is contained in:
tehcneko 2021-04-25 15:21:03 +08:00
parent 1d10cf4760
commit 0409f3af97
2 changed files with 0 additions and 14 deletions

View File

@ -83,10 +83,6 @@ public class ConfigManager {
private static final File miscFile = new File(basePath, "misc_path"); private static final File miscFile = new File(basePath, "misc_path");
private String miscPath = null; 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 logPath = new File(basePath, "log");
private static final File modulesLogPath = new File(logPath, "modules.log"); private static final File modulesLogPath = new File(logPath, "modules.log");
private static final File verboseLogPath = new File(logPath, "all.log"); private static final File verboseLogPath = new File(logPath, "all.log");
@ -275,7 +271,6 @@ public class ConfigManager {
createTables(); createTables();
updateConfig(); updateConfig();
isPermissive = readInt(selinuxPath, 1) == 0;
// must ensure cache is valid for later usage // must ensure cache is valid for later usage
updateCaches(true); updateCaches(true);
} }
@ -564,10 +559,6 @@ public class ConfigManager {
this.verboseLog = verboseLog; this.verboseLog = verboseLog;
} }
public boolean isPermissive() {
return isPermissive;
}
public boolean resourceHook() { public boolean resourceHook() {
return resourceHook; return resourceHook;
} }

View File

@ -117,11 +117,6 @@ public class LSPManagerService extends ILSPManagerService.Stub {
ConfigManager.getInstance().setVerboseLog(enabled); ConfigManager.getInstance().setVerboseLog(enabled);
} }
@Override
public boolean isPermissive() {
return ConfigManager.getInstance().isPermissive();
}
@Override @Override
public ParcelFileDescriptor getVerboseLog() { public ParcelFileDescriptor getVerboseLog() {
return ConfigManager.getInstance().getVerboseLog(); return ConfigManager.getInstance().getVerboseLog();