Re: [RFC PATCH 7/9] x86/sgx: Enforce noexec filesystem restriction for enclaves

From
Jarkko Sakkinen <hidden>
Date
2019-06-04 16:26:12
Also in
lkml, selinux
Reply to
Sean Christopherson, 2019-05-31
On Fri, May 31, 2019 at 04:31:57PM -0700, Sean Christopherson wrote:
Do not allow an enclave page to be mapped with PROT_EXEC if the source
page is backed by a file on a noexec file system.

Signed-off-by: Sean Christopherson <redacted>
Why don't you just check in sgx_encl_add_page() that whether the path
comes from noexec and deny if SECINFO contains X?

/Jarkko
Thread (77 messages) 77 messages, 8 authors, last reply 2019-06-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help