summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2014-12-21 22:27:40 +0100
committerDees Troy <dees_troy@teamw.in>2014-12-22 04:52:37 +0100
commita3d31fbe385094400719e9a7a79965ff5da9f4b4 (patch)
tree2f4bb3239063c127dc37089b0cc85f10bb43fa31 /partitionmanager.cpp
parentAllow non datamedia devices to wipe encryption (diff)
downloadandroid_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.tar
android_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.tar.gz
android_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.tar.bz2
android_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.tar.lz
android_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.tar.xz
android_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.tar.zst
android_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index ebd8c9675..72eb43dbf 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1433,6 +1433,10 @@ int TWPartitionManager::Fix_Permissions(void) {
fixPermissions perms;
result = perms.fixPerms(true, false);
+#ifdef HAVE_SELINUX
+ if (result == 0 && DataManager::GetIntValue("tw_fixperms_restorecon") == 1)
+ result = perms.fixContexts();
+#endif
UnMount_Main_Partitions();
gui_print("Done.\n\n");
return result;