]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot-entry: use chase_and_fopen_unlocked() to open /etc/kernel/entry-token
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Apr 2023 07:15:03 +0000 (16:15 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Apr 2023 07:23:03 +0000 (16:23 +0900)
commitfda18ce2b604719b7b7bc16f36c33d213190df5b
tree27d60746d6c3067a0186ec0e004839d6f40829c7
parent3b5fc5fb1bf4b1601c0e54809b0f475c43d52f68
boot-entry: use chase_and_fopen_unlocked() to open /etc/kernel/entry-token

Otherwise, when 'root' is specified, the file may be a symlink to a host
file, and we may read wrong entry.
src/shared/boot-entry.c