Local root vulnerability in snap-confine
Local root vulnerability in snap-confine
Posted Feb 18, 2022 11:51 UTC (Fri) by mathstuf (subscriber, #69389)In reply to: Local root vulnerability in snap-confine by epa
Parent article: Local root vulnerability in snap-confine
Other questions that come to mind:
- Should symlinks in mounts that show up after the process starts count?
- How would this work with something like AndrewFS where finding all symlinks sounds like an absolute nightmare?
- Can this be namespaced (i.e., "update symlink perms under `/etc/systemd/system`" for systemd)?
- Now the kernel is subject to symlink races that hide themselves in process-specific state that you can't see without a way to debug?
- If it is just `mtime`-based or whatever, that is trivially attacker-controlled too, so that doesn't sound like it's saving anything there.
Sure, global mutable state is terrible in practice and a fun source of bugs for everyone, but that's what a filesystem *is*, so I don't see how snapshotting it makes it any better without a way to launch a process that is pinned to "the symlink view of PID X" for a way to have some sanity in multi-process systems or debugging scenarios.
