summaryrefslogtreecommitdiffstats
path: root/updater/updater.cpp
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2017-06-16 04:57:57 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-06-16 04:57:57 +0200
commiteba11fa5742d1f6913eddc4e363cae6c6ffd6e48 (patch)
tree16af5a42c82e13e39b6030623e3a3c4e7fa15e64 /updater/updater.cpp
parentMerge "Fix a race condition for temperature_logger" am: 8e5fb46e87 (diff)
parentFix "No file_contexts" warning (diff)
downloadandroid_bootable_recovery-eba11fa5742d1f6913eddc4e363cae6c6ffd6e48.tar
android_bootable_recovery-eba11fa5742d1f6913eddc4e363cae6c6ffd6e48.tar.gz
android_bootable_recovery-eba11fa5742d1f6913eddc4e363cae6c6ffd6e48.tar.bz2
android_bootable_recovery-eba11fa5742d1f6913eddc4e363cae6c6ffd6e48.tar.lz
android_bootable_recovery-eba11fa5742d1f6913eddc4e363cae6c6ffd6e48.tar.xz
android_bootable_recovery-eba11fa5742d1f6913eddc4e363cae6c6ffd6e48.tar.zst
android_bootable_recovery-eba11fa5742d1f6913eddc4e363cae6c6ffd6e48.zip
Diffstat (limited to 'updater/updater.cpp')
-rw-r--r--updater/updater.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/updater/updater.cpp b/updater/updater.cpp
index f5ff6df91..1d8fa8e92 100644
--- a/updater/updater.cpp
+++ b/updater/updater.cpp
@@ -25,6 +25,7 @@
#include <android-base/logging.h>
#include <android-base/strings.h>
+#include <selinux/android.h>
#include <selinux/label.h>
#include <selinux/selinux.h>
#include <ziparchive/zip_archive.h>
@@ -139,9 +140,8 @@ int main(int argc, char** argv) {
return 6;
}
- 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) {
fprintf(cmd_pipe, "ui_print Warning: No file_contexts\n");