Bug 107614

Summary: allow load/save/export on file descriptor
Product: libspectre Reporter: Christian Persch (GNOME) <chpe>
Component: generalAssignee: Carlos Garcia Campos <carlosgc>
Status: RESOLVED MOVED QA Contact: Carlos Garcia Campos <carlosgc>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: patch

Description Christian Persch (GNOME) 2018-08-18 17:48:36 UTC
Created attachment 141184 [details] [review]
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().
Comment 1 GitLab Migration User 2018-10-12 21:37:04 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/libspectre/libspectre/issues/23.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.