Skip to content

fix(code): eliminate save-time owner-check path race #134

Closed

Description

@danny-avila

The owner-only verification added in #107 checks the temporary path after chmod even though the file is already open. A concurrent rename/name swap can therefore make the path-based stat inspect a different inode from the descriptor that later receives the worker identity or quarantine record. The read path already avoids this split by using handle.stat(). Verify the save-time mode through the open file descriptor as well, and add a regression test for the swapped-name case.

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions