diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-12-05 13:10:48 +0100 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-12-05 16:16:20 -0800 |
| commit | 87c9e88ac4a16a7aba99862c41b33d7eeb75d375 (patch) | |
| tree | 596338343891b807bb005a6220faed20339c5656 /tools/testing/cxl/test/cxl_translate.c | |
| parent | 4b9d25b4d38035b7b2624afd6852dfe4684f0226 (diff) | |
ovl: pass original credentials, not mounter credentials during createHEADtorvalds/mastertorvalds/HEADmaster
When creating new files the security layer expects the original
credentials to be passed. When cleaning up the code this was accidently
changed to pass the mounter's credentials by relying on current->cred
which is already overriden at this point. Pass the original credentials
directly.
Reported-by: Ondrej Mosnacek <omosnace@redhat.com>
Reported-by: Paul Moore <paul@paul-moore.com>
Fixes: e566bff96322 ("ovl: port ovl_create_or_link() to new ovl_override_creator_creds")
Link: https://lore.kernel.org/CAFqZXNvL1ciLXMhHrnoyBmQu1PAApH41LkSWEhrcvzAAbFij8Q@mail.gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Tested-by: Ondrej Mosnacek <omosnace@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing/cxl/test/cxl_translate.c')
0 files changed, 0 insertions, 0 deletions
