Skip to content

sentry/overlay: use fs.creds for upper layer rename#13520

Open
TristanInSec wants to merge 1 commit into
google:masterfrom
TristanInSec:fix-overlay-rename-creds
Open

sentry/overlay: use fs.creds for upper layer rename#13520
TristanInSec wants to merge 1 commit into
google:masterfrom
TristanInSec:fix-overlay-rename-creds

Conversation

@TristanInSec

Copy link
Copy Markdown

RenameAt passes the caller's credentials (rp.Credentials()) to the
upper layer VFS rename, while all other upper layer mutations
(CreateWhiteout, SetXattrAt, UnlinkAt, copy-up) consistently use
the overlay creator's credentials (fs.creds).

Linux overlayfs uses override_creds() with the mounter's credentials
for all upper layer operations including rename.

Use fs.creds to match both the Linux behavior and the pattern used
by every other upper layer operation in this file.

RenameAt passes the caller's credentials (rp.Credentials()) to the
upper layer VFS rename, while all other upper layer mutations
(CreateWhiteout, SetXattrAt, UnlinkAt, copy-up) consistently use
the overlay creator's credentials (fs.creds). Linux overlayfs uses
override_creds() with the mounter's credentials for all upper layer
operations including rename.

Use fs.creds to match both the Linux behavior and the pattern used
by every other upper layer operation in this file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant