diff options
| author | Victor Hsieh <victorhsieh@google.com> | 2019-03-20 15:52:45 -0700 |
|---|---|---|
| committer | Victor Hsieh <victorhsieh@google.com> | 2019-03-22 09:18:00 -0700 |
| commit | 59183120c29e5e2747222b24de09484b7cd8cf17 (patch) | |
| tree | e95aee4f80ae6f695c3b51cc9c0bf1d702d7c92b /libkeyutils/mini_keyctl_utils.h | |
| parent | b4ef0beb990d02600cad57096bcd20c9d646c8fa (diff) | |
| download | system_core-59183120c29e5e2747222b24de09484b7cd8cf17.tar.gz system_core-59183120c29e5e2747222b24de09484b7cd8cf17.tar.bz2 system_core-59183120c29e5e2747222b24de09484b7cd8cf17.zip | |
Initialize fs-verity keys in shell script
This gives us two benefits:
- Better compatibility to keyctl(1), which doesn't have "dadd"
- Pave the way to specify key's security labels, since keyctl(1)
doesn't support, and we want to avoid adding incompatible option.
Test: See keys loaded in /proc/keys
Bug: 128607724
Change-Id: Ia45f6e9dea80d037c0820cf1fd2bc9d7c8bb6302
Diffstat (limited to 'libkeyutils/mini_keyctl_utils.h')
| -rw-r--r-- | libkeyutils/mini_keyctl_utils.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libkeyutils/mini_keyctl_utils.h b/libkeyutils/mini_keyctl_utils.h index 804a35740..3616831af 100644 --- a/libkeyutils/mini_keyctl_utils.h +++ b/libkeyutils/mini_keyctl_utils.h @@ -18,11 +18,6 @@ #include <string> -// Add all files in a directory as certificates to a keyring. |keyring| could be the keyring -// description or keyring id in hex. -int AddCertsFromDir(const std::string& type, const std::string& desc_prefix, - const std::string& cert_dir, const std::string& keyring); - // Add key to a keyring. Returns non-zero if error happens. int Add(const std::string& type, const std::string& desc, const std::string& data, const std::string& keyring); |
