ENUM SGX_ATTRIBUTE(9)
β¨ enum sgx_attribute(9) β¨
okay bestie, welcome to the enum sgx_attribute(9) page from the Kernel API Manual β it's giving "SGX lore drop" and honestly? iconic. π
So like, this whole page is about the attributes field in &struct sgx_secs. That's it, that's the vibe. π
πΈ NAME πΈ
enum sgx_attribute β literally just the attributes field in &struct sgx_secs, no cap β¨
π¦ SYNOPSIS π¦
enum sgx_attribute {
SGX_ATTR_INIT ,
SGX_ATTR_DEBUG ,
SGX_ATTR_MODE64BIT ,
SGX_ATTR_PROVISIONKEY ,
SGX_ATTR_EINITTOKENKEY ,
SGX_ATTR_KSS ,
SGX_ATTR_ASYNC_EXIT_NOTIFY
};
like, that's the whole enum. seven constants. she's short but she's booked and busy π
π CONSTANTS π
okay so let's go through these one by one, bestie, because each one is a little whole entire personality:
SGX_ATTR_INITβ the enclave can be entered, i.e. it is initialized. she's ready, she's live, she's on β¨SGX_ATTR_DEBUGβ allowsENCLS(EDBGRD)andENCLS(EDBGWR). peek inside energy πSGX_ATTR_MODE64BITβ tells everyone that this is a 64-bit enclave. sixty-four, periodt πSGX_ATTR_PROVISIONKEYβ allows using provisioning keys for remote attestation. trust but verify vibes π«ΆSGX_ATTR_EINITTOKENKEYβ allows using the token signing key that is used to sign cryptographic tokens that can be passed toEINITas an authorization to run an enclave. it's giving "hall pass for the enclave" ποΈSGX_ATTR_KSSβ allows using key separation and sharing (KSS). sharing is caring, but like, cryptographically πSGX_ATTR_ASYNC_EXIT_NOTIFYβ allows enclaves to be notified after an asynchronous exit has occurred. not me ghosting you, bestie β this one makes sure you get the notif π
β SEE ALSO β
Kernel file ./arch/x86/include/asm/sgx.h, plus the whole friend group:
SGX_ENCLS_FAULT_FLAG(9)enum sgx_return_code(9)enum sgx_miscselect(9)struct sgx_secs(9)enum sgx_tcs_flags(9)struct sgx_tcs(9)struct sgx_pageinfo(9)enum sgx_page_type(9)enum sgx_secinfo_flags(9)struct sgx_secinfo(9)struct sgx_pcmd(9)struct sgx_sigstruct_header(9)struct sgx_sigstruct_body(9)struct sgx_sigstruct(9)
like, that's the group chat. go say hi π¦
ngl bestie, this page is mostly just definitions, so no scary warnings here β just remember the attributes live in &struct sgx_secs and each flag does exactly the one thing it says. no invented lore, we don't do that here π
πΈ okay that's the whole page, love you, bye! πΈ
this one came from ./arch/x86/include/asm and it's dated October 2026 β the Kernel API Manual said so, so it's fr fr β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms