ENUM SGX_ATTRIBUTE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” allows ENCLS(EDBGRD) and ENCLS(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 to EINIT as 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