sgx_set_attribute(9)
π
sgx_set_attribute(9) π
okay bestie, this is a Kernel API Manual page for sgx_set_attribute(9) β and yes, we're getting into kernel attribute business, but it's actually kinda straightforward. π«Ά
β¨ NAME β¨
sgx_set_attribute β Update allowed attributes given file descriptor
π SYNOPSIS π
int sgx_set_attribute (unsigned long *allowed_attributes , unsigned int
attribute_fd );
π§Ύ ARGUMENTS π§Ύ
allowed_attributesβ Pointer to allowed enclave attributesattribute_fdβ File descriptor for specific attribute
π DESCRIPTION π
So basically: it appends the enclave attribute indicated by the file descriptor to the allowed attributes. π«
Currently, only SGX_ATTR_PROVISIONKEY β indicated by /dev/sgx_provision β is supported. That's the whole supported set rn, no cap. π
π RETURN π
-0:βSGX_ATTR_PROVISIONKEYis appended toallowed_attributes-EINVAL:β Invalid, or not supported file descriptor
π SEE ALSO π
- Kernel file
./arch/x86/kernel/cpu/sgx/main.cβ__sgx_alloc_epc_page(9) sgx_mark_page_reclaimable(9)sgx_unmark_page_reclaimable(9)sgx_alloc_epc_page(9)sgx_free_epc_page(9)sgx_update_svn(9)
π signed, sealed, delivered: source/version ./arch/x86/kernel/cpu/sgx, dated October 2026, page sgx_set_attribute(9). periodt. π
β¨
π¦ 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