summaryrefslogtreecommitdiffstats
path: root/updater/updater.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-06-18 09:12:19 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-06-18 09:12:19 +0200
commit43348a6282417651e424456445622918c92d132a (patch)
tree22147f867876adb8d6fa57daafffdb3eb82ff8d6 /updater/updater.cpp
parentrelease-request-c72e46fd-06a9-4104-bad3-f7ba8aeb3e1d-for-git_oc-release-4029917 snap-temp-L38800000066299680 (diff)
parentFix "No file_contexts" warning (diff)
downloadandroid_bootable_recovery-43348a6282417651e424456445622918c92d132a.tar
android_bootable_recovery-43348a6282417651e424456445622918c92d132a.tar.gz
android_bootable_recovery-43348a6282417651e424456445622918c92d132a.tar.bz2
android_bootable_recovery-43348a6282417651e424456445622918c92d132a.tar.lz
android_bootable_recovery-43348a6282417651e424456445622918c92d132a.tar.xz
android_bootable_recovery-43348a6282417651e424456445622918c92d132a.tar.zst
android_bootable_recovery-43348a6282417651e424456445622918c92d132a.zip
Diffstat (limited to '')
-rw-r--r--updater/updater.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/updater/updater.cpp b/updater/updater.cpp
index c09e267a5..f3e282044 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");