summaryrefslogtreecommitdiff
path: root/libkeyutils/mini_keyctl_utils.cpp
AgeCommit message (Collapse)Author
2019-09-26Refactor mini-keyctl and split a static libraryVictor Hsieh
Test: mini-keyctl still works in command line Bug: 112038744 Change-Id: I08006d8befa69e4bf416a2bed9e1813725877147
2019-04-15mini-keyctl: fix key id parsing by "0x" prefixVictor Hsieh
Otherwise, ParseInt treats the input as decimal and fails. Test: add key works Bug: None Change-Id: I144ab0bba519c7630e702562bfb54118a389908e
2019-04-08mini-keyctl: move logs to stdoutVictor Hsieh
Also, print key id in padd/add like keyctl(1). This makes local debugging and integration test easier. Test: run all commands manually in shell, see expected output Bug: None Change-Id: I6be6ea9e273e80e7d5848da5cf348da8308a62c1
2019-03-22Initialize fs-verity keys in shell scriptVictor Hsieh
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
2019-03-18mini-keyctl: use ParseInt to parse keysVictor Hsieh
- Valid ID format examples: 0x90a, 123 - ID like 90a will not work now. Bug: None Test: mini-keyctl unlink 0x11d25c86 0x2873c96d Change-Id: I057bce0a49a60f475d54b23e28dc18db25124466
2019-03-18mini-keyctl cleanup: keep local funcitons staticVictor Hsieh
Test: build Bug: None Change-Id: If58f496173d8afff9eb81ff7f5975ddaac765d18
2019-03-15mini-keyctl: support printing security labelVictor Hsieh
Test: mini-keyctl security <key_id> Bug: 128607724 Change-Id: If92b41d0aa96d626933546391b964ca2a8a48703
2019-03-08Change mini-keyctl command format.Xiaoyong Zhou
This CL change the mini-keyctl tool to make it compitable with libkeyctl tool to make it more useful. Bug: 112038861 Test: mini-keyctl padd asymmetric 'desc' .fs-verity < /path/to/cert.der Test: mini-keyctl unlink <key_id> <keyring_id> Test: mini-keyctl restrict_keyring <keyring_id> Change-Id: I950f07c7718f173823ce5a5cd08e0d1a0e23a007