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.