Re:Landrun: Sandbox any Linux process using Landlock, no roo...
by yellowapple on Sunday March 23, 2025 @01:18AM
(#43451047)
The underlying kernel syscall should never change, though, right? Pretty sure that's the sort of userspace-backwards-compatibility-breaking change that would result in one of Linus' famous angry emails.
[ Parent
| on HN ]
Re:Landrun: Sandbox any Linux process using Landlock, no roo...
by mkj on Sunday March 23, 2025 @01:51AM
(#43451123)
Things like clock_gettime64() to handle dates past 2038.
Calling clock_gettime() in libc will call the newer syscall (assuming __TIME_BITS=64 is set). But Linux has kept backwards compat, old programs can still call the old syscall.
If you wrote your seccomp rule for your program before clock_gettime64 existed, it'd break when glibc switched. I guess that implies each language stdlib should have their own seccomp etc wrappers.
For landlock, the equivalent is that glibc reads various files in /etc varying per libc version or system settings, so landlock rules need to account for that.