summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2017-01-18 04:14:46 +0100
committerEthan Yonker <dees_troy@teamw.in>2017-01-18 19:40:26 +0100
commit874136434a6ef13dffec9c6c8c136d2424a32c33 (patch)
tree5875f18cd9ea090a36b692de24f29e69a2b4f65d /twrp.cpp
parentRestore file system type logline on restore (diff)
downloadandroid_bootable_recovery-874136434a6ef13dffec9c6c8c136d2424a32c33.tar
android_bootable_recovery-874136434a6ef13dffec9c6c8c136d2424a32c33.tar.gz
android_bootable_recovery-874136434a6ef13dffec9c6c8c136d2424a32c33.tar.bz2
android_bootable_recovery-874136434a6ef13dffec9c6c8c136d2424a32c33.tar.lz
android_bootable_recovery-874136434a6ef13dffec9c6c8c136d2424a32c33.tar.xz
android_bootable_recovery-874136434a6ef13dffec9c6c8c136d2424a32c33.tar.zst
android_bootable_recovery-874136434a6ef13dffec9c6c8c136d2424a32c33.zip
Diffstat (limited to 'twrp.cpp')
-rw-r--r--twrp.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/twrp.cpp b/twrp.cpp
index 5459bd469..ff40eb11c 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -53,10 +53,8 @@ extern "C" {
}
#endif
-#ifdef HAVE_SELINUX
-#include "selinux/label.h"
+#include <selinux/label.h>
struct selabel_handle *selinux_handle;
-#endif
extern int adb_server_main(int is_daemon, int server_port, int /* reply_fd */);
@@ -133,7 +131,6 @@ int main(int argc, char **argv) {
// Load up all the resources
gui_loadResources();
-#ifdef HAVE_SELINUX
if (TWFunc::Path_Exists("/prebuilt_file_contexts")) {
if (TWFunc::Path_Exists("/file_contexts")) {
printf("Renaming regular /file_contexts -> /file_contexts.bak\n");
@@ -170,9 +167,6 @@ int main(int argc, char **argv) {
gui_msg("full_selinux=Full SELinux support is present.");
}
}
-#else
- gui_warn("no_selinux=No SELinux support (no libselinux).");
-#endif
PartitionManager.Mount_By_Path("/cache", false);