diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-11-03 00:12:43 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-11-04 12:36:07 +0100 |
| commit | ae40e6c65791f47c76cc14d0cce2707fe6053f72 (patch) | |
| tree | b26f5d745f6f62fb715b81d78f571f7d1c0f9675 /drivers/base/firmware_loader/main.c | |
| parent | 40314c2818b700da695c9686348be7aef9e156a2 (diff) | |
cred: add scoped_with_kernel_creds()
Add a new cleanup class for override creds. We can make use of this in a
bunch of places going forward.
Based on this scoped_with_kernel_creds() that can be used to temporarily
assume kernel credentials for specific tasks such as firmware loading,
or coredump socket connections. At no point will the caller interact
with the kernel credentials directly.
Link: https://patch.msgid.link/20251103-work-creds-init_cred-v1-4-cb3ec8711a6a@kernel.org
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'drivers/base/firmware_loader/main.c')
0 files changed, 0 insertions, 0 deletions