diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2017-06-16 04:58:00 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-06-16 04:58:00 +0200 |
commit | 3445b94c89927c93428e9e72b73f1303ad20450e (patch) | |
tree | cd587e5689c3de60b4792a158a81b433db0ad000 /recovery.cpp | |
parent | Merge "kill package_extract_dir" am: 99e7216907 am: 49f9c969eb am: 66e53f59b9 (diff) | |
parent | Fix "No file_contexts" warning (diff) | |
download | android_bootable_recovery-3445b94c89927c93428e9e72b73f1303ad20450e.tar android_bootable_recovery-3445b94c89927c93428e9e72b73f1303ad20450e.tar.gz android_bootable_recovery-3445b94c89927c93428e9e72b73f1303ad20450e.tar.bz2 android_bootable_recovery-3445b94c89927c93428e9e72b73f1303ad20450e.tar.lz android_bootable_recovery-3445b94c89927c93428e9e72b73f1303ad20450e.tar.xz android_bootable_recovery-3445b94c89927c93428e9e72b73f1303ad20450e.tar.zst android_bootable_recovery-3445b94c89927c93428e9e72b73f1303ad20450e.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 122b89d0b..852f1e862 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -53,6 +53,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"); } |