]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootspec: use chase_symlinks() where appropriate
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Sep 2022 16:19:46 +0000 (18:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Sep 2022 11:14:05 +0000 (13:14 +0200)
commit2683ae2d73b7afad50dc43c8dc9433478a8e73cc
treef27029bf7fd714d1933e2ad7e14966c73e2ecb51
parentbe429c8ff6389961537c8ed245f0924164c8d305
bootspec: use chase_symlinks() where appropriate

Let's better be safe than sorry, and follow symlinks in ESP + XBOOTLDR
via chase_symlinks() relative to the root of these files systems. This is
not a big issue given that ESP/XBOOTLDR are supposed to be VFAT where
symlinks don't exist, but the specs don't strictly require this, and by
loading efifs drivers in uefi it would be possible to support symlinks,
but we'd rather not have that here.

No real change in behaviour, just stricter rules to make me sleep better
at night.
src/shared/bootspec.c