3 ms·
I see. That's really interesting. Looks like it is implemented by mprotecting the pages where the trusted code resides. The program's text segments are consider
by matheusmoreira 5y ago
I see. That's really interesting. Looks like it is implemented by mprotecting the pages where the trusted code resides. The program's text segments are considered trusted by default so a freestanding C program that makes system calls directly should not be affected.
https://lwn.net/Articles/806863/ https://lwn.net/Articles/806863/
> For static binaries, the valid regions are the base program's text segment and the signal trampoline page.
I'm not sure but it looks like the BSD libc is some kind a special case? Surely this is not necessary? A compiler or language runtime should be able to somehow mark those segments with the appropriate permissions.