diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-07-14 10:51:18 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-07-14 12:28:26 +0200 |
commit | a0613123248e571df3601f88073c9921ca3a9a76 (patch) | |
tree | 40f5bdfb0a21e62d19f3658f2c38cc468adf8502 /.packit.yml | |
parent | Merge pull request #28380 from bluca/homed_translate (diff) | |
download | systemd-a0613123248e571df3601f88073c9921ca3a9a76.tar.xz systemd-a0613123248e571df3601f88073c9921ca3a9a76.zip |
kernel-install: Avoid reopening file descriptor via /proc
kernel-install used to work without /proc mounted before the rewrite
in C. Let's restore that property by making sure we don't reopen
file descriptors via /proc. In this case, parse_env_file_fdv() calls
fdopen_independent() to get a FILE * for the given file descriptor
(which itself calls fd_reopen()). Let's avoid the call to
fdopen_independent() by using chase_and_fopenat_unlocked() which
gives us a FILE * immediately without having to reopen any file
descriptors.
Diffstat (limited to '.packit.yml')
0 files changed, 0 insertions, 0 deletions