From 874136434a6ef13dffec9c6c8c136d2424a32c33 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Tue, 17 Jan 2017 21:14:46 -0600 Subject: SELinux can be assumed for Android 4.4+ Change-Id: I7410a0c8e439eec90a955ee9201efd9a92bb9635 --- twrp.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'twrp.cpp') 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 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); -- cgit v1.2.3