Filesystem-oriented flags: sad, messy and not going away
Filesystem-oriented flags: sad, messy and not going away
Posted Mar 17, 2020 6:33 UTC (Tue) by Cyberax (✭ supporter ✭, #52523)In reply to: Filesystem-oriented flags: sad, messy and not going away by areilly
Parent article: Filesystem-oriented flags: sad, messy and not going away
How? There will still be software that uses old flags, for the foreseeable future. You'll have to provide their emulation _somewhere_.
Posted Mar 17, 2020 6:37 UTC (Tue)
by josh (subscriber, #17465)
[Link] (4 responses)
Posted Mar 17, 2020 9:51 UTC (Tue)
by smurf (subscriber, #17840)
[Link] (3 responses)
A corollary is that statically-linked programs may or may not continue to work when you update your kernel, a notion which Linus emphatically rejects.
Posted Mar 17, 2020 10:25 UTC (Tue)
by josh (subscriber, #17465)
[Link]
That said, it'd be interesting if we had a slightly more extensible syscall layer that could tell when an argument was passed or not passed, which would allow existing existing syscalls without having to create new ones.
It's looking increasingly like io_uring might be that extensible syscall layer.
Posted Mar 19, 2020 20:55 UTC (Thu)
by BenHutchings (subscriber, #37955)
[Link] (1 responses)
Posted Mar 23, 2020 15:27 UTC (Mon)
by gray_-_wolf (subscriber, #131074)
[Link]
sometimes... would be nice if it never did but that is sadly not the case :/
Posted Mar 17, 2020 6:47 UTC (Tue)
by areilly (subscriber, #87829)
[Link] (3 responses)
The BSD versioned syscalls are in the kernel (so you can still have static executables), but they can be supplied by loadable kernel modules (as the linux and SCO syscalls are/were), which can eventually be deprecated or not loaded as suits the use-case, without getting (too much) in the way of the "fresh" syscall API.
Posted Mar 17, 2020 6:53 UTC (Tue)
by josh (subscriber, #17465)
[Link] (2 responses)
How does Solaris provide that to userspace? Similar to the VDSO, or via a library provided on the filesystem that calls an unstable kernel interface?
Posted Mar 17, 2020 7:41 UTC (Tue)
by areilly (subscriber, #87829)
[Link] (1 responses)
Posted Mar 18, 2020 21:37 UTC (Wed)
by justincormack (subscriber, #70439)
[Link]
OpenBSD has been taking this model to a more modern design, where libc is blessed, and only it can make syscalls, by having a special attribute set. This is designed as a security measure, to stop arbitrary code using syscalls.
Filesystem-oriented flags: sad, messy and not going away
Filesystem-oriented flags: sad, messy and not going away
Filesystem-oriented flags: sad, messy and not going away
Filesystem-oriented flags: sad, messy and not going away
Filesystem-oriented flags: sad, messy and not going away
Filesystem-oriented flags: sad, messy and not going away
Filesystem-oriented flags: sad, messy and not going away
Filesystem-oriented flags: sad, messy and not going away
Filesystem-oriented flags: sad, messy and not going away