summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnilKumar Chimata <anilc@codeaurora.org>2015-05-22 07:23:45 (GMT)
committerZhao Wei Liew <zhaoweiliew@gmail.com>2017-02-12 12:45:53 (GMT)
commitd1e1e0b06131fb6fb88e3d570f479e89db56406d (patch)
treed7bda2803e255029e1f736e9cce6f539bc607c05
parent8d14c48ec1a01c97ae70443a39126939950a28f4 (diff)
downloadandroid_vendor_qcom_opensource_cryptfs_hw-d1e1e0b06131fb6fb88e3d570f479e89db56406d.zip
android_vendor_qcom_opensource_cryptfs_hw-d1e1e0b06131fb6fb88e3d570f479e89db56406d.tar.gz
android_vendor_qcom_opensource_cryptfs_hw-d1e1e0b06131fb6fb88e3d570f479e89db56406d.tar.bz2
cryptfs_hw: Remove keymaster partition check
As the partition names are changing from branch to branch, device FDE key is not wrapped with Hw keymaster which is less secure. So removing the partition name related checks to avoid failures. Change-Id: If181b093122479ca57ff6846b10d6aa2fb3eaa0c
-rwxr-xr-xcryptfs_hw.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/cryptfs_hw.c b/cryptfs_hw.c
index e149aec..6695552 100755
--- a/cryptfs_hw.c
+++ b/cryptfs_hw.c
@@ -65,8 +65,6 @@
#define SET_HW_DISK_ENC_KEY 1
#define UPDATE_HW_DISK_ENC_KEY 2
-#define KEYMASTER_PARTITION_NAME "/dev/block/bootdevice/by-name/keymaster"
-
#define QSEECOM_UP_CHECK_COUNT 10
static int loaded_library = 0;
@@ -290,10 +288,5 @@ int should_use_keymaster()
return rc;
}
- if (access(KEYMASTER_PARTITION_NAME, F_OK) == -1) {
- SLOGI("Keymaster partition does not exists");
- return rc;
- }
-
return 1;
}