diff options
| author | Victor Hsieh <victorhsieh@google.com> | 2019-03-15 11:35:45 -0700 |
|---|---|---|
| committer | Victor Hsieh <victorhsieh@google.com> | 2019-03-15 16:01:01 -0700 |
| commit | 327037f06363532c8cff79c7e6b1f64f4de9119c (patch) | |
| tree | 0a1c3006a2dc973fc84b9c3547b454c8a305e67f /libkeyutils/mini_keyctl_utils.h | |
| parent | 0e5b74deff69312063e9f71d3b62f1f806b29526 (diff) | |
| download | system_core-327037f06363532c8cff79c7e6b1f64f4de9119c.tar.gz system_core-327037f06363532c8cff79c7e6b1f64f4de9119c.tar.bz2 system_core-327037f06363532c8cff79c7e6b1f64f4de9119c.zip | |
mini-keyctl: support printing security label
Test: mini-keyctl security <key_id>
Bug: 128607724
Change-Id: If92b41d0aa96d626933546391b964ca2a8a48703
Diffstat (limited to 'libkeyutils/mini_keyctl_utils.h')
| -rw-r--r-- | libkeyutils/mini_keyctl_utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libkeyutils/mini_keyctl_utils.h b/libkeyutils/mini_keyctl_utils.h index 3c6961170..150967ddd 100644 --- a/libkeyutils/mini_keyctl_utils.h +++ b/libkeyutils/mini_keyctl_utils.h @@ -46,3 +46,6 @@ int RestrictKeyring(const std::string& keyring); // information in the descritption section depending on the key type, only the first word in the // keyring description is used for searching. bool GetKeyringId(const std::string& keyring_desc, key_serial_t* keyring_id); + +// Retrieves a key's security context. Return the context string, or empty string on error. +std::string RetrieveSecurityContext(key_serial_t key); |
