mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-28 05:40:26 +00:00
81438c4ddd
This solves several problems: - host usually have outdates headers, so previously we need to define missing consts - host may not have some headers at all - generation depends on linux distribution and version - some of the consts cannot be defined at all (e.g. ioctls that use struct arguments)
35 lines
2.6 KiB
Plaintext
35 lines
2.6 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>
|
|
|
|
add_key(type string, desc string, payload buffer[in, opt], paylen len[payload], keyring flags[keyring_type]) key
|
|
request_key(type string, desc string, callout 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 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 string, desc 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
|
|
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
|