dissect-image: let's lock down fstypes a bit
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Dec 2022 09:00:06 +0000 (10:00 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 22 Dec 2022 01:30:35 +0000 (10:30 +0900)
commit80ce8580f5aa6b03fa13a0b3b30207bc9b5c5fe0
treec18332bf3df4321d274a4a4775091d2bfc82644b
parente20bae24d138e96aac6d8c99a396df0a8773876e
dissect-image: let's lock down fstypes a bit

When we dissect images automatically, let's be a bit more conservative
with the file system types we are willing to mount: only mount common
file systems automatically.

Explicit mounts requested by admins should always be OK, but when we do
automatic mounts, let's not permit barely maintained, possibly legacy
file systems.

The list for now covers the four common writable and two common
read-only file systems. Sooner or later we might want to add more to the
list.

Also, it might make sense to eventually make this configurable via the
image dissection policy logic.
docs/ENVIRONMENT.md
src/gpt-auto-generator/gpt-auto-generator.c
src/shared/dissect-image.c
src/shared/dissect-image.h