Home
last modified time | relevance | path

Searched refs:add_key (Results 1 - 21 of 21) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/add_key/
H A Dadd_key05.c15 * where add_key fails with EDQUOT. Keys are freed asynchronously and we only
91 TEST(add_key("user", "test2", user_buf, 64, KEY_SPEC_THREAD_KEYRING)); in verify_max_bytes()
107 TEST(add_key("user", "test_inv", buf, invalid_plen, KEY_SPEC_THREAD_KEYRING)); in verify_max_bytes()
109 tst_res(TFAIL, "add_key(test_inv) succeeded unexpectedltly"); in verify_max_bytes()
113 tst_res(TPASS | TTERRNO, "add_key(test_inv) failed as expected"); in verify_max_bytes()
115 tst_res(TFAIL | TTERRNO, "add_key(test_inv) failed expected EDQUOT got"); in verify_max_bytes()
118 TEST(add_key("user", "test3", user_buf, 64, KEY_SPEC_THREAD_KEYRING)); in verify_max_bytes()
123 TEST(add_key("user", "test4", user_buf, 64, KEY_SPEC_THREAD_KEYRING)); in verify_max_bytes()
130 TEST(add_key("user", "test_max", buf, plen, KEY_SPEC_THREAD_KEYRING)); in verify_max_bytes()
132 tst_res(TFAIL | TTERRNO, "add_key(test_ma in verify_max_bytes()
[all...]
H A Dadd_key01.c74 TEST(add_key(tc->type, tc->desc, *tc->buf, tc->plen, KEY_SPEC_THREAD_KEYRING)); in verify_add_key()
77 tst_res(TFAIL | TTERRNO, "add_key call failed unexpectedly"); in verify_add_key()
79 tst_res(TPASS, "add_key call succeeded as expected"); in verify_add_key()
83 tst_res(TPASS | TTERRNO, "add_key call failed as expected"); in verify_add_key()
85 tst_res(TFAIL | TTERRNO, "add_key call failed expected EINVAL but got"); in verify_add_key()
87 tst_res(TFAIL, "add_key call succeeded unexpectedly"); in verify_add_key()
96 TEST(add_key("logon", "test:sup_logon", buf, sizeof(buf), KEY_SPEC_THREAD_KEYRING)); in setup()
100 TEST(add_key("big_key", "sup_big_key", buf, sizeof(buf), KEY_SPEC_THREAD_KEYRING)); in setup()
H A Dadd_key04.c53 TEST(add_key("keyring", description, NULL, 0, in do_test()
61 TEST(add_key("user", "userkey", payload, sizeof(PAYLOAD), in do_test()
H A Dadd_key02.c6 * Test that the add_key() syscall correctly handles a NULL payload with nonzero
48 TEST(add_key(tcases[i].type, in verify_add_key()
53 "add_key() with key type '%s' unexpectedly succeeded", in verify_add_key()
H A Dadd_key03.c27 TEST(add_key("keyring", description, NULL, 0, in create_keyring()
/third_party/json/tests/thirdparty/fifo_map/
H A Dfifo_map.hpp79 void add_key(const Key& key) in add_key() function in nlohmann::fifo_map_compare
171 m_compare.add_key(key); in operator []()
178 m_compare.add_key(key); in operator []()
297 m_compare.add_key(value.first); in insert()
305 m_compare.add_key(value.first); in insert()
312 m_compare.add_key(value.first); in insert()
319 m_compare.add_key(value.first); in insert()
329 m_compare.add_key(it->first); in insert()
340 m_compare.add_key(value.first); in insert()
351 m_compare.add_key(valu in emplace()
[all...]
/third_party/ltp/testcases/kernel/syscalls/keyctl/
H A Dkeyctl09.c23 TST_EXP_POSITIVE(add_key("user", "user:masterkey", "foo", 3, in do_test()
29 TST_EXP_POSITIVE(add_key("encrypted", "ltptestkey1", in do_test()
42 TST_EXP_FAIL2(add_key("encrypted", "ltptestkey2", in do_test()
H A Dkeyctl02.c66 key = add_key("user", "ltptestkey", "foo", 3, in do_test()
99 key_inv = add_key("user", "ltptestkey", "foo", 3, in do_test()
H A Dkeyctl05.c92 TEST(add_key(type, "desc", payload, plen, KEY_SPEC_SESSION_KEYRING)); in test_update_nonupdatable()
159 TEST(add_key("user", "desc", payload, sizeof(payload), in test_update_setperm_race()
H A Dkeyctl03.c29 key = add_key("user", "ltptestkey", "a", 1, KEY_SPEC_SESSION_KEYRING); in do_test()
H A Dkeyctl06.c26 TEST(add_key("user", description, "payload", 7, in add_test_key()
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/
H A Ddata_structures.py47 def add_key(self, k): member in DictOfStringSets
53 self.add_key(k)
/third_party/ltp/testcases/kernel/syscalls/request_key/
H A Drequest_key03.c9 * (1) CVE-2017-15299, fixed by commit 60ff5b2f547a ("KEYS: don't let add_key()
15 * the same: repeatedly try to add/update a key with add_key() while requesting
18 * For CVE-2017-15299, add_key() has to run while the key being created by
27 * to "positively instantiated" via add_key() updating it. This race, which is
71 * Depending on the state of the key, add_key() should either succeed or in run_child_add()
74 * (1) key didn't exist at all: either add_key() should succeed (if the in run_child_add()
80 * (2) key was negative: add_key() should succeed in run_child_add()
82 * (3) key was uninstantiated: add_key() should wait for the key to be in run_child_add()
90 TEST(add_key(type, "desc", payload, strlen(payload), in run_child_add()
105 tst_res(TINFO, "add_key() proces in run_child_add()
[all...]
H A Drequest_key01.c44 key = add_key("keyring", "ltp", NULL, 0, KEY_SPEC_THREAD_KEYRING); in setup()
46 tst_brk(TBROK | TERRNO, "add_key() failed"); in setup()
H A Drequest_key02.c66 n = add_key("keyring", name, NULL, 0, KEY_SPEC_THREAD_KEYRING); in init_key()
68 tst_brk(TBROK | TERRNO, "add_key() failed"); in init_key()
/third_party/ltp/pan/
H A Dsymbol.c137 static int add_key(SYM sym, char *key, void *data) in add_key() function
247 add_key(csym, *kk, (void *)(ncsym = newsym())); in sym_put()
250 add_key(csym, *kk, data); /* last key */ in sym_put()
/third_party/toybox/toys/posix/
H A Dsort.c162 static struct sort_key *add_key(void) in add_key() function
320 struct sort_key *key = add_key(); in sort_main()
369 if (!TT.key_list) add_key()->range[0] = 1; in sort_main()
/third_party/ltp/testcases/cve/
H A Dcve-2016-7042.c33 key = add_key("user", "ltptestkey", "a", 1, KEY_SPEC_SESSION_KEYRING); in do_test()
/third_party/ltp/include/lapi/
H A Dkeyctl.h23 static inline key_serial_t add_key(const char *type, in add_key() function
/third_party/ltp/testcases/kernel/watchqueue/
H A Dcommon.h84 key = add_key("user", "ltptestkey", "a", 1, KEY_SPEC_SESSION_KEYRING); in wqueue_add_key()
86 tst_brk(TBROK, "add_key error: %s", tst_strerrno(errno)); in wqueue_add_key()
/third_party/f2fs-tools/tools/
H A Df2fscrypt.c155 static key_serial_t add_key(const char *type, const char *description, in add_key() function
579 * The fact that the keyctl system call and the add_key system in get_keyring_id()
647 rc = add_key(F2FS_KEY_TYPE_LOGON, key_ref_full, (void *)&key, in insert_key_into_keyring()
694 "f2fscrypt add_key -S salt [ -k keyring ] [-v] [-q] [ path ... ]\n\n" \
884 CMD(add_key),

Completed in 8 milliseconds