summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorGuoHan Zhao <zhaoguohan@kylinos.cn>2026-05-10 22:54:37 +0800
committerMiklos Szeredi <mszeredi@redhat.com>2026-06-15 14:06:19 +0200
commitc51248524a0f546b9a9b44710038f5663688ed10 (patch)
treed34c38910ec63a834313ad1ed35bff55a3b7a73f /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parent9107a3d8bbde1b4a38db01422601906f81f04ad5 (diff)
fuse: use current creds for backing files
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> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Acked-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions