diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2017-06-15 00:30:39 +0200 |
---|---|---|
committer | Jeffrey Vander Stoep <jeffv@google.com> | 2017-06-15 23:24:29 +0200 |
commit | e35926e1aff2e6b9b54656bd59c8178e295a1b7e (patch) | |
tree | 22147f867876adb8d6fa57daafffdb3eb82ff8d6 /recovery.cpp | |
parent | Fix the input parameter for "set_retry_bootloader_message" (diff) | |
download | android_bootable_recovery-e35926e1aff2e6b9b54656bd59c8178e295a1b7e.tar android_bootable_recovery-e35926e1aff2e6b9b54656bd59c8178e295a1b7e.tar.gz android_bootable_recovery-e35926e1aff2e6b9b54656bd59c8178e295a1b7e.tar.bz2 android_bootable_recovery-e35926e1aff2e6b9b54656bd59c8178e295a1b7e.tar.lz android_bootable_recovery-e35926e1aff2e6b9b54656bd59c8178e295a1b7e.tar.xz android_bootable_recovery-e35926e1aff2e6b9b54656bd59c8178e295a1b7e.tar.zst android_bootable_recovery-e35926e1aff2e6b9b54656bd59c8178e295a1b7e.zip |
Diffstat (limited to 'recovery.cpp')
-rw-r--r-- | recovery.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/recovery.cpp b/recovery.cpp index 30edaa57b..c1a31b6a8 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -54,6 +54,7 @@ #include <healthd/BatteryMonitor.h> #include <private/android_logger.h> /* private pmsg functions */ #include <private/android_filesystem_config.h> /* for AID_SYSTEM */ +#include <selinux/android.h> #include <selinux/label.h> #include <selinux/selinux.h> #include <ziparchive/zip_archive.h> @@ -1481,12 +1482,8 @@ int main(int argc, char **argv) { ui->SetBackground(RecoveryUI::NONE); if (show_text) ui->ShowText(true); - struct selinux_opt seopts[] = { - { SELABEL_OPT_PATH, "/file_contexts" } - }; - - sehandle = selabel_open(SELABEL_CTX_FILE, seopts, 1); - + sehandle = selinux_android_file_context_handle(); + selinux_android_set_sehandle(sehandle); if (!sehandle) { ui->Print("Warning: No file_contexts\n"); } |