From d1e1e0b06131fb6fb88e3d570f479e89db56406d Mon Sep 17 00:00:00 2001 From: AnilKumar Chimata Date: Fri, 22 May 2015 12:53:45 +0530 Subject: 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 --- cryptfs_hw.c | 7 ------- 1 file changed, 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; } -- cgit v1.2.3