]> git.ipfire.org Git - thirdparty/linux.git/commit
cred: add prepare credential guard
authorChristian Brauner <brauner@kernel.org>
Mon, 3 Nov 2025 14:57:27 +0000 (15:57 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 4 Nov 2025 11:36:57 +0000 (12:36 +0100)
commitc8ad3098e1272444b6c75910d6196a36f5c8bc17
tree0da2526eaf03a44abfa7d5e20675c3870f3f6950
parenta85787996aa97412223ff1975f5cd44b592e2f5f
cred: add prepare credential guard

A lot of code uses the following pattern:

* prepare new credentials
* modify them for their use-case
* drop them

Support that easier with the new guard infrastructure.

Link: https://patch.msgid.link/20251103-work-creds-guards-prepare_creds-v1-1-b447b82f2c9b@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/cred.h