News for hackers. Stuff that matters.
Re:liblinux: Architecture-independent access to Linux system... by matheusmoreira on Tuesday November 09, 2021 @12:31PM (#29164599)
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/

> 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.

There are no comments on this comment yet.