Skip to content

reef: mds: misc fixes for MDSAuthCaps code#60207

Merged
mchangir merged 3 commits intoceph:reeffrom
kotreshhr:wip-68455-reef
Feb 4, 2025
Merged

reef: mds: misc fixes for MDSAuthCaps code#60207
mchangir merged 3 commits intoceph:reeffrom
kotreshhr:wip-68455-reef

Conversation

@kotreshhr
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/68455


backport of #54381
parent tracker: https://tracker.ceph.com/issues/68453

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

lxbsz added 3 commits October 9, 2024 13:31
Once the caller_gid is matched it will make no sense to do the
following caller gid list check.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit bd3e019)
Just in case the 'target_path' is tailed with '/' it may fail to
match the 'path', such as in case 'path=/foo/' and 'target_path=/foo'
it will fail.

Just try to remove the tailing '/' from 'target_path' and then
also we can simplify the code to make it more readable.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit cd706e4)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 516b099)
@kotreshhr kotreshhr added this to the reef milestone Oct 9, 2024
@kotreshhr kotreshhr added the cephfs Ceph File System label Oct 9, 2024
@kotreshhr kotreshhr requested a review from lxbsz October 9, 2024 08:02
@github-actions github-actions bot added the tests label Oct 9, 2024
@kotreshhr kotreshhr requested a review from a team October 9, 2024 08:02
@github-actions
Copy link

github-actions bot commented Dec 8, 2024

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions bot added the stale label Dec 8, 2024
@vshankar
Copy link
Contributor

vshankar commented Jan 3, 2025

jenkins test make check

@vshankar
Copy link
Contributor

This PR is under test in https://tracker.ceph.com/issues/69503.

vshankar added a commit to vshankar/ceph that referenced this pull request Jan 13, 2025
* refs/pull/60207/head:
	test/libcephfs: add test case for slash tailing path for access
	mds: fix and improve MDSCapMatch::match_path()
	mds: skip uneccessary caller gid list check
@mchangir
Copy link
Contributor

jenkins test make check

1 similar comment
@mchangir
Copy link
Contributor

mchangir commented Feb 3, 2025

jenkins test make check

Copy link
Contributor

@mchangir mchangir left a comment

Choose a reason for hiding this comment

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

@mchangir mchangir merged commit 815bef7 into ceph:reef Feb 4, 2025
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