-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Temporary files are essentially a hack. For the purposes of shm, there's no need to have any filesystem entry, and it's possible for the tmp directory to be disk-backed or otherwise persistent. Linux (which is the only platform supporting Wayland properly at present) provides memfd which is generally agreed upon to be the right way to get an fd referencing a memory region. Memfd is also useful for compositors to ensure they can use mapped memory without worrying about the mapping being shrunk out from under them by buggy or hostile applications; see https://lwn.net/Articles/591108/.
Avoiding the tempfile crate will also shrink the transitive dependency graph significantly.
Metadata
Metadata
Assignees
Labels
No labels