Home
last modified time | relevance | path

Searched refs:keyctl (Results 1 – 25 of 105) sorted by relevance

12345

/external/syzkaller/sys/linux/
Dkey.txt5 include <linux/keyctl.h>
6 include <uapi/linux/keyctl.h>
22 keyctl$get_keyring_id(code const[KEYCTL_GET_KEYRING_ID], key key, create intptr)
23 keyctl$join(code const[KEYCTL_JOIN_SESSION_KEYRING], session ptr[in, key_desc, opt])
24 keyctl$update(code const[KEYCTL_UPDATE], key key, payload buffer[in, opt], paylen len[payload])
25 keyctl$revoke(code const[KEYCTL_REVOKE], key key)
26 keyctl$describe(code const[KEYCTL_DESCRIBE], key key, desc buffer[out], len len[desc])
27 keyctl$clear(code const[KEYCTL_CLEAR], keyring keyring)
28 keyctl$link(code const[KEYCTL_LINK], key key, keyring keyring)
29 keyctl$unlink(code const[KEYCTL_UNLINK], key key, keyring keyring)
[all …]
/external/ltp/testcases/commands/keyctl/
Dkeyctl01.sh43 if ! keyctl 2>&1 | grep -q "keyctl $op"; then
48 local key=`keyctl request2 user debug:foo bar`
55 if ! keyctl unlink $key @s; then
98 keyctl request2 user debug:fred negate @t >temp 2>&1
105 local key=`keyctl show | awk '/debug:fred/ {print $1}'`
107 key=`keyctl show | \
112 keyctl unlink $key @s >/dev/null
/external/ltp/testcases/kernel/syscalls/request_key/
Drequest_key04.c39 TEST(keyctl(KEYCTL_JOIN_SESSION_KEYRING, NULL)); in do_test()
43 TEST(keyctl(KEYCTL_SETPERM, KEY_SPEC_SESSION_KEYRING, in do_test()
50 TEST(keyctl(KEYCTL_SET_REQKEY_KEYRING, in do_test()
57 TEST(keyctl(KEYCTL_READ, KEY_SPEC_SESSION_KEYRING, in do_test()
69 TEST(keyctl(KEYCTL_READ, KEY_SPEC_SESSION_KEYRING, in do_test()
Drequest_key02.c81 if (keyctl(cmd, n) == -1) { in init_key()
87 if (keyctl(cmd, n, sec) == -1) { in init_key()
Drequest_key03.c68 TEST(keyctl(KEYCTL_JOIN_SESSION_KEYRING, NULL)); in test_with_key_type()
117 TEST(keyctl(KEYCTL_CLEAR, KEY_SPEC_SESSION_KEYRING)); in test_with_key_type()
/external/ltp/testcases/kernel/syscalls/keyctl/
Dkeyctl05.c88 TEST(keyctl(KEYCTL_JOIN_SESSION_KEYRING, NULL)); in new_session_keyring()
128 TEST(keyctl(KEYCTL_SETPERM, keyid, KEY_POS_ALL)); in test_update_nonupdatable()
136 TEST(keyctl(KEYCTL_UPDATE, keyid, payload, plen)); in test_update_nonupdatable()
176 TEST(keyctl(KEYCTL_SETPERM, keyid, perm)); in test_update_setperm_race()
185 TEST(keyctl(KEYCTL_UPDATE, keyid, payload, sizeof(payload))); in test_update_setperm_race()
Dkeyctl02.c57 keyctl(KEYCTL_READ, key, buffer, 4); in do_read()
66 keyctl(KEYCTL_REVOKE, key); in do_revoke()
115 if (keyctl(KEYCTL_INVALIDATE, key_inv) == -1 && errno != EOPNOTSUPP) in do_test()
123 ret = keyctl(KEYCTL_REVOKE, key); in do_test()
Dkeyctl04.c38 TEST(keyctl(KEYCTL_GET_KEYRING_ID, KEY_SPEC_THREAD_KEYRING, 1)); in do_test()
43 TEST(keyctl(KEYCTL_SET_REQKEY_KEYRING, KEY_REQKEY_DEFL_THREAD_KEYRING)); in do_test()
47 TEST(keyctl(KEYCTL_GET_KEYRING_ID, KEY_SPEC_THREAD_KEYRING, 0)); in do_test()
Dkeyctl01.c37 TEST(keyctl(KEYCTL_GET_KEYRING_ID, KEY_SPEC_USER_SESSION_KEYRING)); in do_test()
44 TEST(keyctl(KEYCTL_READ, key)); in do_test()
49 TEST(keyctl(KEYCTL_REVOKE, key)); in do_test()
Dkeyctl07.c61 TEST(keyctl(KEYCTL_READ, KEY_SPEC_PROCESS_KEYRING, in try_to_read_negative_key()
75 TEST(keyctl(KEYCTL_READ, key_id, buffer, sizeof(buffer))); in try_to_read_negative_key()
/external/ltp/testcases/kernel/security/mmc_security/
Dchange_password.sh46 keyid=$(keyctl request mmc "mmc:key")
68 if ! keyctl update $keyid "$oldpasswd$newpasswd"; then
75 keyctl clear -3
Dremove_password.sh48 keyid=$(keyctl request mmc "mmc:key")
59 keyctl clear -3
DREADME36 keyctl request2 mmc mmc:key unlock
40 keyctl request2 mmc mmc:key assign
/external/ltp/testcases/cve/
Dcve-2016-7042.c49 if (keyctl(KEYCTL_UPDATE, key, "b", 1)) in do_test()
62 if (keyctl(KEYCTL_UNLINK, key, KEY_SPEC_SESSION_KEYRING)) in do_test()
75 if (key > 0 && keyctl(KEYCTL_UNLINK, key, KEY_SPEC_SESSION_KEYRING)) in cleanup()
/external/syzkaller/pkg/report/testdata/linux/guilty/
D431 keyctl_keyring_link+0x24/0xc0 security/keys/keyctl.c:507
32 SYSC_keyctl security/keys/keyctl.c:1661 [inline]
33 SyS_keyctl+0x1af/0x290 security/keys/keyctl.c:1633
/external/strace/tests-mx32/
Dpure_executables.list157 keyctl
158 keyctl-Xabbrev
159 keyctl-Xraw
160 keyctl-Xverbose
Dpure_executables.am158 keyctl \
159 keyctl-Xabbrev \
160 keyctl-Xraw \
161 keyctl-Xverbose \
Dkeyctl-Xverbose.gen.test4 run_strace_match_diff -a41 -s10 -e trace=keyctl -Xverbose
/external/strace/tests/
Dpure_executables.list157 keyctl
158 keyctl-Xabbrev
159 keyctl-Xraw
160 keyctl-Xverbose
Dpure_executables.am158 keyctl \
159 keyctl-Xabbrev \
160 keyctl-Xraw \
161 keyctl-Xverbose \
/external/strace/tests-m32/
Dpure_executables.list157 keyctl
158 keyctl-Xabbrev
159 keyctl-Xraw
160 keyctl-Xverbose
Dpure_executables.am158 keyctl \
159 keyctl-Xabbrev \
160 keyctl-Xraw \
161 keyctl-Xverbose \
/external/ltp/include/lapi/
Dkeyctl.h54 static inline long keyctl(int cmd, ...) in keyctl() function
70 return keyctl(KEYCTL_JOIN_SESSION_KEYRING, name); in keyctl_join_session_keyring()
/external/e2fsprogs/misc/
De4crypt.c80 static long keyctl(int cmd, ...) in keyctl() function
523 if (keyctl(KEYCTL_DESCRIBE, x, NULL, 0) < 0) in get_keyring_id()
560 rc = keyctl(KEYCTL_SEARCH, keyring_id, EXT2FS_KEY_TYPE_LOGON, in insert_key_into_keyring()
590 keyring_id = keyctl(KEYCTL_GET_KEYRING_ID, keyring_id, 0); in insert_key_into_keyring()
810 keyid = keyctl(KEYCTL_JOIN_SESSION_KEYRING, NULL); in do_new_session()
815 ret = keyctl(KEYCTL_SESSION_TO_PARENT, NULL); in do_new_session()
/external/f2fs-tools/tools/
Df2fscrypt.c130 static long keyctl(int cmd, ...) in keyctl() function
572 return keyctl(KEYCTL_GET_KEYRING_ID, in get_keyring_id()
581 if (keyctl(KEYCTL_DESCRIBE, x, NULL, 0) < 0) in get_keyring_id()
618 rc = keyctl(KEYCTL_SEARCH, keyring_id, F2FS_KEY_TYPE_LOGON, in insert_key_into_keyring()
851 keyid = keyctl(KEYCTL_JOIN_SESSION_KEYRING, NULL); in do_new_session()
856 ret = keyctl(KEYCTL_SESSION_TO_PARENT, NULL); in do_new_session()

12345