Generated process and PSB ABI

Process access rights #

From uapi/pkm/process.h.

KACS process object-specific access rights (the low 16 bits of a process access mask).

Named for the Windows process rights; an access check folds the generic bits (<pkm/sd.h>) into these via the process generic mapping.

ConstantValue
KACS_PROCESS_TERMINATE0x00000001 (1)
KACS_PROCESS_SIGNAL0x00000002 (2)
KACS_PROCESS_VM_READ0x00000010 (16)
KACS_PROCESS_VM_WRITE0x00000020 (32)
KACS_PROCESS_DUP_HANDLE0x00000040 (64)
KACS_PROCESS_SET_INFORMATION0x00000200 (512)
KACS_PROCESS_QUERY_INFORMATION0x00000400 (1024)
KACS_PROCESS_SUSPEND_RESUME0x00000800 (2048)
KACS_PROCESS_QUERY_LIMITED0x00001000 (4096)

Process mitigation bits #

From uapi/pkm/psb.h.

Process Security Block (PSB) process-mitigation bits.

The mitigations argument of kacs_set_psb (SYS_KACS_SET_PSB) is a bitmask of these flags. Setting a bit is activation-backed: KACS either places the target process in the protected state (or verifies it already satisfies the invariant) before committing, and rejects later operations that would disable the protection. Each mitigation is enforced at its own enforcement point and persists across exec. See Kernel TRM section 3.3 (Process Security Block). Only the bits in KACS_MIT_ALL are valid; any other bit set in the request is rejected. KACS_MIT_CFI is a legacy alias: requesting it sets both KACS_MIT_CFIF and KACS_MIT_CFIB, and the alias bit itself is not retained.

ConstantValueNotes
KACS_MIT_WXP0x001 (1)Write-XOR-Execute protection
KACS_MIT_TLP0x002 (2)Trusted Library Paths
KACS_MIT_LSV0x004 (4)Library Signature Verification
KACS_MIT_CFI0x008 (8)legacy alias: CFIF | CFIB
KACS_MIT_UI_ACCESS0x010 (16)UI interaction (reserved)
KACS_MIT_NO_CHILD0x020 (32)cannot fork (one-way)
KACS_MIT_CFIF0x040 (64)forward-edge CFI (Intel IBT)
KACS_MIT_CFIB0x080 (128)backward-edge CFI (shadow stack)
KACS_MIT_PIE0x100 (256)reject non-PIE binaries at exec
KACS_MIT_SML0x200 (512)speculation mitigation lock

All valid mitigation bits OR'd together — the accepted-request mask.

ConstantValue
KACS_MIT_ALL0x3FF (1023)

Edit this page