diff options
author | Nikita Ioffe <ioffe@google.com> | 2019-11-08 12:24:02 +0000 |
---|---|---|
committer | Nikita Ioffe <ioffe@google.com> | 2019-11-08 16:11:04 +0000 |
commit | 63898aa2b269829b371c4c2ba48076b92e78cb1a (patch) | |
tree | 7f04848c36a5ed59afc56e93e8d7a07d1fa58235 /libcutils/sockets_unix.cpp | |
parent | 7e5fb6b322bd7df704e10c31f635d51b43f597b3 (diff) |
userspace reboot: don't re-install keyring when remounting userdata
From the implementation of FscryptInstallKeyring it looks like it will
install a new keyring on each call.
Another approach would be change FscryptInstallKeyring to first call
request_key[0] (http://man7.org/linux/man-pages/man2/request_key.2.html),
and don't add keyring in case request_key succeeded, but it looks like
that libkeyutils doesn't provide such functionality.
Since I was there, I've also added checks that we are not trying to
remount userdata on FDE devices.
Test: adb reboot userspace
Bug: 135984674
Change-Id: I2e063d7d87a3c2c26810e913a33e3a5c0364332b
Diffstat (limited to 'libcutils/sockets_unix.cpp')
0 files changed, 0 insertions, 0 deletions