allow load/save/export on file descriptor
Submitted by Christian Persch (GNOME) (away till 24.9.)
Assigned to Carlos Campos @carlosgc
Link to original bug (#107614)
Description
Created attachment 141184 patch
libspectre currently only supports loading from, saving and exporting to, a named file.
The attached patch implements loading from, and saving and exporting to, a file descriptor.
The use case for this is loading working with unlinked files (e.g. a temp file created with O_TMPFILE) and files received via FD passing from another process which the process using libspectre has no access to and thus cannot fopen().
Patch 141184, "patch":
libspectre-fd.patch