|
|
Subscribe / Log in / New account

Naming things - mimmutable vs mseal

Naming things - mimmutable vs mseal

Posted Jan 20, 2024 15:58 UTC (Sat) by Karellen (subscriber, #67644)
In reply to: Naming things - mimmutable vs mseal by fredrik
Parent article: mseal() gets closer

Is it worth considering that whatever libc API is used to wrap the syscall, does not necessarily need to use the same name as the syscall? Or, libc could present multiple wrappers for the same syscall - including adding a BSD-like mimmutable() that calls mseal() under the hood? (e.g. AIUI glibc open() actually calls openat(2) on Linux these days, ignoring Linux's native open(2) syscall altogether.)

Of course, glibc devs may be opposed to this for any number of perfectly valid reasons, but that doesn't mean the option isn't there. Or, if not glibc, then another libc might want to.


to post comments

Naming things - mimmutable vs mseal

Posted Jan 20, 2024 20:03 UTC (Sat) by dezgeg (subscriber, #92243) [Link]

setuid() is one good example where the Linux syscall has different semantics than the libc setuid(). The syscall version only applies to the current thread which is not POSIX compatible. It's then libc which does setuid() for each thread of the process to match POSIX.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds