diff options
author | Makornthawat Emery <makornthawateugeneemery@gmail.com> | 2019-03-29 14:45:22 +0100 |
---|---|---|
committer | Makornthawat Emery <makornthawateugeneemery@gmail.com> | 2019-03-30 02:05:46 +0100 |
commit | abc299c09f23a01be299dc2e891cc8ea57868a4f (patch) | |
tree | 4e00cdf272fcaceae486e210b0ff362a2e8c1ab0 | |
parent | Transfer /dev/mtp_usb fd ownership when instancing MtpDevHandle (diff) | |
download | android_bootable_recovery-abc299c09f23a01be299dc2e891cc8ea57868a4f.tar android_bootable_recovery-abc299c09f23a01be299dc2e891cc8ea57868a4f.tar.gz android_bootable_recovery-abc299c09f23a01be299dc2e891cc8ea57868a4f.tar.bz2 android_bootable_recovery-abc299c09f23a01be299dc2e891cc8ea57868a4f.tar.lz android_bootable_recovery-abc299c09f23a01be299dc2e891cc8ea57868a4f.tar.xz android_bootable_recovery-abc299c09f23a01be299dc2e891cc8ea57868a4f.tar.zst android_bootable_recovery-abc299c09f23a01be299dc2e891cc8ea57868a4f.zip |
-rwxr-xr-x | twrp-functions.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp index 84451b3b6..0730ca849 100755 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -1206,10 +1206,7 @@ void TWFunc::check_selinux_support() { } if (TWFunc::Path_Exists(se_context_check)) { ret = lgetfilecon(se_context_check.c_str(), &contexts); - if (ret > 0) { - lsetfilecon(se_context_check.c_str(), "test"); - lgetfilecon(se_context_check.c_str(), &contexts); - } else { + if (ret < 0) { LOGINFO("Could not check %s SELinux contexts, using /sbin/teamwin instead which may be inaccurate.\n", se_context_check.c_str()); lgetfilecon("/sbin/teamwin", &contexts); } |