Skip to content

fuse: use current creds for backing files#1367

Open
vfsci-bot[bot] wants to merge 1 commit intovfs.base.cifrom
pw/1092290/vfs.base.ci
Open

fuse: use current creds for backing files#1367
vfsci-bot[bot] wants to merge 1 commit intovfs.base.cifrom
pw/1092290/vfs.base.ci

Conversation

@vfsci-bot
Copy link
Copy Markdown

@vfsci-bot vfsci-bot Bot commented May 10, 2026

Series: https://patchwork.kernel.org/project/linux-fsdevel/list/?series=1092290
Submitter: GuoHan Zhao
Version: 1
Patches: 1/1
Message-ID: <20260510145437.321141-1-zhaoguohan@kylinos.cn>
Base: vfs.base.ci
Lore: https://lore.kernel.org/linux-fsdevel/20260510145437.321141-1-zhaoguohan@kylinos.cn


Automated by ml2pr

FUSE backing files only need a stable snapshot of the current credentials
for later backing-file I/O. prepare_creds() allocates a mutable copy and
can fail, but this code never modifies or commits the result.

Use get_current_cred() instead and store it as a const pointer. This
matches the rest of the backing-file helpers and avoids an unnecessary
allocation and failure path.

Signed-off-by: GuoHan Zhao <zhaoguohan@kylinos.cn>
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.

0 participants