mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-25 04:19:53 +00:00
5ed6283b64
In preparation for extending string functionality and to make it less magical.
38 lines
3.0 KiB
Plaintext
38 lines
3.0 KiB
Plaintext
# Copyright 2015 syzkaller project authors. All rights reserved.
|
|
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
|
|
|
|
include <linux/keyctl.h>
|
|
include <uapi/linux/keyctl.h>
|
|
|
|
resource key[int32]: KEY_SPEC_THREAD_KEYRING, KEY_SPEC_PROCESS_KEYRING, KEY_SPEC_SESSION_KEYRING, KEY_SPEC_USER_KEYRING, KEY_SPEC_USER_SESSION_KEYRING, KEY_SPEC_GROUP_KEYRING, KEY_SPEC_REQKEY_AUTH_KEY, KEY_SPEC_REQUESTOR_KEYRING
|
|
|
|
add_key(type ptr[in, string], desc ptr[in, string], payload buffer[in, opt], paylen len[payload], keyring flags[keyring_type]) key
|
|
request_key(type ptr[in, string], desc ptr[in, string], callout ptr[in, string], keyring flags[keyring_type]) key
|
|
keyctl$get_keyring_id(code const[KEYCTL_GET_KEYRING_ID], key key, create intptr)
|
|
keyctl$join(code const[KEYCTL_JOIN_SESSION_KEYRING], session ptr[in, string])
|
|
keyctl$update(code const[KEYCTL_UPDATE], key key, payload buffer[in, opt], paylen len[payload])
|
|
keyctl$revoke(code const[KEYCTL_REVOKE], key key)
|
|
keyctl$describe(code const[KEYCTL_DESCRIBE], key key, desc buffer[out], len len[desc])
|
|
keyctl$clear(code const[KEYCTL_CLEAR], key key)
|
|
keyctl$link(code const[KEYCTL_LINK], key1 key, key2 key)
|
|
keyctl$unlink(code const[KEYCTL_UNLINK], key1 key, key2 key)
|
|
keyctl$search(code const[KEYCTL_SEARCH], key key, type ptr[in, string], desc ptr[in, string], ring key)
|
|
keyctl$read(code const[KEYCTL_READ], key key, payload buffer[out], len len[payload])
|
|
keyctl$chown(code const[KEYCTL_CHOWN], key key, uid uid, gid gid)
|
|
# perm is a mask of KEY_POS_VIEW, etc consants, but they cover almost whole int32.
|
|
keyctl$setperm(code const[KEYCTL_SETPERM], key key, perm int32)
|
|
keyctl$instantiate(code const[KEYCTL_INSTANTIATE], key key, payload buffer[in, opt], paylen len[payload], ring key)
|
|
keyctl$negate(code const[KEYCTL_NEGATE], key key, timeout intptr, ring key)
|
|
keyctl$set_reqkey_keyring(code const[KEYCTL_SET_REQKEY_KEYRING], reqkey flags[reqkey_keyring])
|
|
keyctl$set_timeout(code const[KEYCTL_SET_TIMEOUT], key key, timeout int32)
|
|
keyctl$assume_authority(code const[KEYCTL_ASSUME_AUTHORITY], key key)
|
|
keyctl$get_security(code const[KEYCTL_GET_SECURITY], key key, label buffer[out], len len[label])
|
|
keyctl$session_to_parent(code const[KEYCTL_SESSION_TO_PARENT])
|
|
keyctl$reject(code const[KEYCTL_REJECT], key key, timeout intptr, error intptr, ring key)
|
|
keyctl$instantiate_iov(code const[KEYCTL_INSTANTIATE_IOV], key key, payload ptr[in, array[iovec_in]], len len[payload], ring key)
|
|
keyctl$invalidate(code const[KEYCTL_INVALIDATE], key key)
|
|
keyctl$get_persistent(code const[KEYCTL_GET_PERSISTENT], uid uid, key key)
|
|
|
|
keyring_type = KEY_SPEC_THREAD_KEYRING, KEY_SPEC_PROCESS_KEYRING, KEY_SPEC_SESSION_KEYRING, KEY_SPEC_USER_KEYRING, KEY_SPEC_USER_SESSION_KEYRING, KEY_SPEC_GROUP_KEYRING, KEY_SPEC_REQKEY_AUTH_KEY, KEY_SPEC_REQUESTOR_KEYRING
|
|
reqkey_keyring = KEY_REQKEY_DEFL_NO_CHANGE, KEY_REQKEY_DEFL_DEFAULT, KEY_REQKEY_DEFL_THREAD_KEYRING, KEY_REQKEY_DEFL_PROCESS_KEYRING, KEY_REQKEY_DEFL_SESSION_KEYRING, KEY_REQKEY_DEFL_USER_KEYRING, KEY_REQKEY_DEFL_USER_SESSION_KEYRING, KEY_REQKEY_DEFL_GROUP_KEYRING, KEY_REQKEY_DEFL_REQUESTOR_KEYRING
|