summaryrefslogtreecommitdiff
path: root/KeyUtil.cpp
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2017-04-28 01:11:35 +0000
committerDaniel Rosenberg <drosen@google.com>2017-04-28 16:04:11 -0700
commit71c56f6dd5c4bf134342db08fe03cdc61714c5bd (patch)
tree81c479d94bbd1bce497f8b7fcd57d9169713fcf6 /KeyUtil.cpp
parentf622c43e3af93214990dc1e5ab8f26304d505eed (diff)
Revert "Revert "Stop dropping caches now we have kernel fix""
This reverts commit 8ad0bef7b5b1b6e1ba3afe441d2dcc9a06e782a7. Bug: 37231161 Test: Boot device with FBE enabled. ls /storage/emulated/0/Android Unlock device. ls /storage/emulated/0/Android 1st will not be found. Second should be found. Change-Id: I92c7ad0adaa7bd357e10661a47cc667ac0ff84b4
Diffstat (limited to 'KeyUtil.cpp')
-rw-r--r--KeyUtil.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/KeyUtil.cpp b/KeyUtil.cpp
index 4d507a1..fe0f3cb 100644
--- a/KeyUtil.cpp
+++ b/KeyUtil.cpp
@@ -111,13 +111,6 @@ bool installKey(const std::string& key, std::string* raw_ref) {
LOG(DEBUG) << "Added key " << key_id << " (" << ref << ") to keyring " << device_keyring
<< " in process " << getpid();
- // *TODO* Remove this code when kernel is fixed - see b/28373400
- // Kernel preserves caches across a key insertion with ext4ice, which leads
- // to contradictory dirents
- if (!android::base::WriteStringToFile("3", "/proc/sys/vm/drop_caches")) {
- PLOG(ERROR) << "Failed to drop_caches";
- }
-
return true;
}