Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

renameat(2) behaviour when destination exists #8

Description

@daviddrysdale

If the destination of a renameat() operation exists, it will be removed. This implies that in this case something like the CAP_UNLINK right should be needed for the destination directory-fd -- but CAP_UNLINK isn't needed if the destination is empty.

Need to update the code for this case, presumably by caching the dest-fd rights and returning to them for an extra check when the processing discovers a non-empty destination.

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