Generated syscall index

Every name, value, offset and size in this appendix is generated from include/uapi/pkm/ by tools/docs/peios-reference/generators/gen-kacs-abi.py, with struct layouts measured by compiling a probe against the real headers. Regenerate it whenever the ABI changes; do not edit it by hand.

The names here are the ones a program actually compiles against. Everything about the ABI a compiler cannot measure -- token query payload shapes, the specification spellings that differ from these names, what is documented elsewhere, and the kernel configuration -- is in the notes appendix, KACS ABI Notes, which this generator does not touch.

Syscall numbers #

Signatures are read from the SYSCALL_DEFINE sites in security/pkm/kacs/. The PKM UAPI exports the uppercase constants in <pkm/syscall.h>. Peios glibc 2.44-5 and later exports the standard lowercase SYS_kacs_* aliases in <sys/syscall.h>; each alias has the same number as its PKM constant.

NumberPKM constantglibc aliasSignature
1000SYS_KACS_OPEN_SELF_TOKENSYS_kacs_open_self_tokenkacs_open_self_token(unsigned int flags, u32 access_mask)
1001SYS_KACS_OPEN_PROCESS_TOKENSYS_kacs_open_process_tokenkacs_open_process_token(int pidfd, u32 access_mask)
1002SYS_KACS_OPEN_THREAD_TOKENSYS_kacs_open_thread_tokenkacs_open_thread_token(int pidfd, int tid, u32 access_mask)
1003SYS_KACS_CREATE_TOKENSYS_kacs_create_tokenkacs_create_token(const void __user *spec, size_t spec_len)
1004SYS_KACS_CREATE_LOGON_SESSIONSYS_kacs_create_logon_sessionkacs_create_logon_session(const void __user *spec, size_t spec_len)
1005SYS_KACS_SET_PSBSYS_kacs_set_psbkacs_set_psb(int pidfd, u32 mitigations)
1006SYS_KACS_DESTROY_EMPTY_LOGON_SESSIONSYS_kacs_destroy_empty_logon_sessionkacs_destroy_empty_logon_session(u64 auth_id)
1012SYS_KACS_REVERTSYS_kacs_revertkacs_revert(void)
1020SYS_KACS_OPENSYS_kacs_openkacs_open(int dirfd, const char __user *path, struct kacs_open_how __user *uhow, size_t howsize, u32 __user *status_out)
1021SYS_KACS_GET_SDSYS_kacs_get_sdkacs_get_sd(int dirfd, const char __user *path, u32 security_info, void __user *buf, u32 buf_len, u32 flags)
1022SYS_KACS_SET_SDSYS_kacs_set_sdkacs_set_sd(int dirfd, const char __user *path, u32 security_info, const void __user *sd_buf, u32 sd_len, u32 flags)
1023SYS_KACS_ACCESS_CHECKSYS_kacs_access_checkkacs_access_check(const void __user *uargs)
1024SYS_KACS_ACCESS_CHECK_LISTSYS_kacs_access_check_listkacs_access_check_list(const void __user *uargs, struct kacs_node_result __user *results, u32 results_count)
1025SYS_KACS_SET_CAAPSYS_kacs_set_caapkacs_set_caap(const void __user *policy_sid, u32 policy_sid_len, const void __user *spec, u32 spec_len)
1026SYS_KACS_GET_MOUNT_POLICYSYS_kacs_get_mount_policykacs_get_mount_policy(int fd, struct kacs_mount_policy_args __user *uargs, size_t argsize)
1027SYS_KACS_SET_MOUNT_POLICYSYS_kacs_set_mount_policykacs_set_mount_policy(int fd, struct kacs_mount_policy_args __user *uargs, size_t argsize)
1028SYS_KACS_ACCESS_CHECK_SUBJECTSYS_kacs_access_check_subjectkacs_access_check_subject(const void __user *request, size_t request_len, void __user *result)
1029SYS_KACS_QUERY_OPENSYS_kacs_query_openkacs_query_open(int fd, struct kacs_open_info __user *uinfo, size_t size)
1030SYS_KACS_SET_DISPOSITIONSYS_kacs_set_dispositionkacs_set_disposition(int fd, u32 flags)
1031SYS_KACS_RENAMESYS_kacs_renamekacs_rename(int fd, int newdirfd, const char __user *newpath, u32 flags)
1032SYS_KACS_LOCKSYS_kacs_lockkacs_lock(int fd, const struct kacs_lock_args __user *uargs, size_t size)
1033SYS_KACS_CREATE_LEASE_MANAGERSYS_kacs_create_lease_managerkacs_create_lease_manager(u32 flags, u32 timeout_ms)
1034SYS_KACS_LEASESYS_kacs_leasekacs_lease(int fd, int manager_fd, struct kacs_lease_args __user *uargs, size_t size)

uapi/pkm/syscall.h also registers the KMES and LCS numbers, 1090–1104, documented in their own chapters.

Structure layouts #

Edit this page