diff options
author | AnilKumar Chimata <anilc@codeaurora.org> | 2015-05-22 12:53:45 +0530 |
---|---|---|
committer | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2017-02-12 20:45:53 +0800 |
commit | d1e1e0b06131fb6fb88e3d570f479e89db56406d (patch) | |
tree | d7bda2803e255029e1f736e9cce6f539bc607c05 | |
parent | 8d14c48ec1a01c97ae70443a39126939950a28f4 (diff) | |
download | android_vendor_qcom_opensource_cryptfs_hw-d1e1e0b06131fb6fb88e3d570f479e89db56406d.tar.gz android_vendor_qcom_opensource_cryptfs_hw-d1e1e0b06131fb6fb88e3d570f479e89db56406d.tar.bz2 android_vendor_qcom_opensource_cryptfs_hw-d1e1e0b06131fb6fb88e3d570f479e89db56406d.zip |
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-x | cryptfs_hw.c | 7 |
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; } |