Local root vulnerability in snap-confine
Local root vulnerability in snap-confine
Posted Feb 17, 2022 20:15 UTC (Thu) by Cyberax (✭ supporter ✭, #52523)In reply to: Local root vulnerability in snap-confine by jra
Parent article: Local root vulnerability in snap-confine
IMO, it's POSIX API that we should stop deifying. It's a mess that evolved without much coherent thought.
Posted Feb 17, 2022 20:21 UTC (Thu)
by jra (subscriber, #55261)
[Link] (4 responses)
Symlinks are the most common security problem with Linux applications. I agree the POSIX filesystem API is a horrible mess, but it's symlinks that have made it so. The worst part of it is that what you're calling the "POSIX API" is actually the thin layer on top of the Linux system call interface (which because of symlinks is also a horrible mess).
Banning symlinks would remove a large number (I did the stats for my SambaXP talk) of security holes in applications on Linux. Think of the ones we've yet to find.
Posted Feb 17, 2022 20:28 UTC (Thu)
by Cyberax (✭ supporter ✭, #52523)
[Link] (1 responses)
Any way that can mutate the filesystem structure causes exactly the same problem, and this most definitely includes mounts/overlays. And overlays are becoming critical for containers that we would want to launch without admin permissions.
So mutability of the filesystem is not going away and apps will have to deal with it, symlinks or not.
> I agree the POSIX filesystem API is a horrible mess, but it's symlinks that have made it so.
Posted Feb 18, 2022 20:41 UTC (Fri)
by developer122 (guest, #152928)
[Link]
Posted Feb 18, 2022 0:55 UTC (Fri)
by Karellen (subscriber, #67644)
[Link]
That feels backwards to me.
Posted Feb 18, 2022 1:15 UTC (Fri)
by aabc (subscriber, #55202)
[Link]
Local root vulnerability in snap-confine
Local root vulnerability in snap-confine
But they're not!
Not really? It's mostly the lack of handle-based interfaces that is the issue, both for filesystem APIs and for the process/signals API.
Local root vulnerability in snap-confine
Local root vulnerability in snap-confine
The worst part of it is that what you're calling the "POSIX API" is actually the thin layer on top of the Linux system call interface
Local root vulnerability in snap-confine