summaryrefslogtreecommitdiffstats
path: root/libkeyutils/mini_keyctl_utils.h
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2019-03-18 15:52:28 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-03-18 15:52:28 +0000
commit9555bd40cec95e94ea5152f4191c0bf6c4e1f75a (patch)
tree118023e634cf02795bff80a571f5e48b0c1a8fe2 /libkeyutils/mini_keyctl_utils.h
parentfc0f79f8a842b777281899eaac9a7dffaadbae44 (diff)
parent327037f06363532c8cff79c7e6b1f64f4de9119c (diff)
downloadsystem_core-9555bd40cec95e94ea5152f4191c0bf6c4e1f75a.tar.gz
system_core-9555bd40cec95e94ea5152f4191c0bf6c4e1f75a.tar.bz2
system_core-9555bd40cec95e94ea5152f4191c0bf6c4e1f75a.zip
Merge "mini-keyctl: support printing security label"
Diffstat (limited to 'libkeyutils/mini_keyctl_utils.h')
-rw-r--r--libkeyutils/mini_keyctl_utils.h3
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);