Skip to content

squid: mds: cephx path restriction incorrectly rejects snapshots of deleted directory - #59518

Merged
mchangir merged 3 commits into
ceph:squidfrom
batrick:wip-67751-squid
Jan 2, 2025
Merged

mchangir merged 3 commits into
ceph:squidfrom
batrick:wip-67751-squid

Conversation

@batrick

@batrick batrick commented Aug 29, 2024

Copy link
Copy Markdown
Member

Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 9397f46)
Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 6138176)
A snapped unlinked directory is moved to the stray directory. Files in that
directory will not have correct stray_prior_path set because the snapshot was
naturally taken before the file is unlinked.

Use the parent directory's stray_prior_path for cephx path access controls.

Fixes: https://tracker.ceph.com/issues/66828
Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 5ad0df3)
@batrick batrick added this to the squid milestone Aug 29, 2024
@batrick batrick added the cephfs Ceph File System label Aug 29, 2024
@github-actions github-actions Bot added the tests label Aug 29, 2024
@batrick

batrick commented Aug 30, 2024

Copy link
Copy Markdown
Member Author

jenkins test make check

4 similar comments
@batrick

batrick commented Aug 30, 2024

Copy link
Copy Markdown
Member Author

jenkins test make check

@batrick

batrick commented Aug 30, 2024

Copy link
Copy Markdown
Member Author

jenkins test make check

@batrick

batrick commented Sep 3, 2024

Copy link
Copy Markdown
Member Author

jenkins test make check

@rishabh-d-dave

Copy link
Copy Markdown
Contributor

jenkins test make check

@vshankar

Copy link
Copy Markdown
Contributor

@mchangir mchangir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mchangir
mchangir merged commit a299636 into ceph:squid Jan 2, 2025
afreen23 pushed a commit to rhcs-dashboard/ceph that referenced this pull request Jul 29, 2026
squid: mds: cephx path restriction incorrectly rejects snapshots of deleted directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants