Skip to content

[Bug] Support securefifo on Windows #18

Description

@byo

Current implementation of securefifo only works on posix-compilant FS-es and OS-es.

In order to ensure that no external process can open a temporary file storing the data, that temporary file, while still being open in the cinode process, is deleted on the filesystem thus it can not be accessed by filename by any external process.

On Windows systems however, there's no such option and a file opened by any process is protected against removal.

Current implementation assumes posix-compilant behavior and thus fails on Windows system.

To fix the issue, an alternative implementation that does not delete the file on Windows should be provided.

The original implementation for posix-compilant OS-es should remain unchanged though. The suggested approach would be to use os-specific implementations either through build tags or through filename suffixes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions