[PATCH v2] cred: add get_cred_many and put_cred_many
Paul Moore
paul at paul-moore.com
Thu Sep 21 23:29:28 UTC 2023
On Sep 9, 2023 Mateusz Guzik <mjguzik at gmail.com> wrote:
>
> Some of the frequent consumers of get_cred and put_cred operate on 2
> references on the same creds back-to-back.
>
> Switch them to doing the work in one go instead.
>
> v2:
> - add kdoc entries
> - hoist validate_cred call in exit_creds
> - reword commit message
>
> Signed-off-by: Mateusz Guzik <mjguzik at gmail.com>
> ---
> include/linux/cred.h | 59 +++++++++++++++++++++++++++++++++++++-------
> kernel/cred.c | 26 ++++++++++---------
> 2 files changed, 65 insertions(+), 20 deletions(-)
Merged into lsm/next, thanks for your patience Mateusz.
--
paul-moore.com
More information about the Linux-security-module-archive
mailing list