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 | f750d10af4124ca99b9372128cebef75e732eb91 (patch) | |
| tree | 7f04848c36a5ed59afc56e93e8d7a07d1fa58235 /libcutils/sockets_unix.cpp | |
| parent | 208913fb324241e2735a866fb4ff4c8802c7964f (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
