summaryrefslogtreecommitdiffstats
path: root/updater/install.c
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2012-10-17 01:33:39 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2012-10-17 01:33:40 +0200
commit78afed1c15989d4aa7e66094afa81cd3a6d22674 (patch)
tree0462d8372a28cd14dc5a2389b25500687e7950c9 /updater/install.c
parentMerge "Fixing trivial warnings for libminui" (diff)
parentRemove HAVE_SELINUX guards (diff)
downloadandroid_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.tar
android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.tar.gz
android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.tar.bz2
android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.tar.lz
android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.tar.xz
android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.tar.zst
android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.zip
Diffstat (limited to 'updater/install.c')
-rw-r--r--updater/install.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/updater/install.c b/updater/install.c
index f981017bf..9ace12541 100644
--- a/updater/install.c
+++ b/updater/install.c
@@ -78,23 +78,19 @@ Value* MountFn(const char* name, State* state, int argc, Expr* argv[]) {
goto done;
}
-#ifdef HAVE_SELINUX
char *secontext = NULL;
if (sehandle) {
selabel_lookup(sehandle, &secontext, mount_point, 0755);
setfscreatecon(secontext);
}
-#endif
mkdir(mount_point, 0755);
-#ifdef HAVE_SELINUX
if (secontext) {
freecon(secontext);
setfscreatecon(NULL);
}
-#endif
if (strcmp(partition_type, "MTD") == 0) {
mtd_scan_partitions();