[pbs-devel] applied: [PATCH proxmox-backup] auth: request a write lock when exposing the `LockedTfaConfig`

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Apr 24 21:28:29 CEST 2024


Am 12/04/2024 um 14:31 schrieb Stefan Sterz:
> this function is called every time a user tries to log in to check
> whether a tfa challenge is required. since the tfa config may need to
> be written by the auth api (e.g. when a recovery key is used) this
> needs to use a write lock instead of a read lock in order to avoid
> potential races.
> 
> Signed-off-by: Stefan Sterz <s.sterz at proxmox.com>
> ---
>  src/auth.rs | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
>

applied, thanks!




More information about the pbs-devel mailing list