!48 backport to fix rpc_gss_seccreate passed in credential
From: @eaglegai Reviewed-by: @jiangheng12 Signed-off-by: @jiangheng12
This commit is contained in:
commit
8a2c4f8793
35
backport-fix-rpc_gss_seccreate-passed-in-cred.patch
Normal file
35
backport-fix-rpc_gss_seccreate-passed-in-cred.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
From 22b1c0cd6076dcd7df822cd1181e98278dc865db Mon Sep 17 00:00:00 2001
|
||||||
|
From: Olga Kornievskaia <kolga@netapp.com>
|
||||||
|
Date: Wed, 3 Jan 2024 17:50:42 -0500
|
||||||
|
Subject: [PATCH] gssapi: fix rpc_gss_seccreate passed in cred
|
||||||
|
|
||||||
|
Fix rpc_gss_seccreate() usage of the passed in gss credential.
|
||||||
|
|
||||||
|
Fixes: 5f1fe4dde861 ("Pass time_req and input_channel_bindings through to init_sec_context")
|
||||||
|
|
||||||
|
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
|
||||||
|
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
|
||||||
|
Signed-off-by: Steve Dickson <steved@redhat.com>
|
||||||
|
---
|
||||||
|
src/auth_gss.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/auth_gss.c b/src/auth_gss.c
|
||||||
|
index e317664..9d18f96 100644
|
||||||
|
--- a/src/auth_gss.c
|
||||||
|
+++ b/src/auth_gss.c
|
||||||
|
@@ -842,9 +842,9 @@ rpc_gss_seccreate(CLIENT *clnt, char *principal, char *mechanism,
|
||||||
|
gd->sec = sec;
|
||||||
|
|
||||||
|
if (req) {
|
||||||
|
- sec.req_flags = req->req_flags;
|
||||||
|
+ gd->sec.req_flags = req->req_flags;
|
||||||
|
gd->time_req = req->time_req;
|
||||||
|
- sec.cred = req->my_cred;
|
||||||
|
+ gd->sec.cred = req->my_cred;
|
||||||
|
gd->icb = req->input_channel_bindings;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: libtirpc
|
Name: libtirpc
|
||||||
Version: 1.2.6
|
Version: 1.2.6
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Transport-independent RPC library
|
Summary: Transport-independent RPC library
|
||||||
License: SISSL and BSD
|
License: SISSL and BSD
|
||||||
URL: http://git.linux-nfs.org/?p=steved/libtirpc.git;a=summary
|
URL: http://git.linux-nfs.org/?p=steved/libtirpc.git;a=summary
|
||||||
@ -13,6 +13,7 @@ Patch05: backport-Fix-use-after-free-accessing-the-error-number.patch
|
|||||||
Patch06: backport-Eliminate-deadlocks-in-connects-with-an-MT-environment.patch
|
Patch06: backport-Eliminate-deadlocks-in-connects-with-an-MT-environment.patch
|
||||||
Patch07: backport-clnt_dg_freeres-uncleared-set-active-state-may-deadlock.patch
|
Patch07: backport-clnt_dg_freeres-uncleared-set-active-state-may-deadlock.patch
|
||||||
Patch08: backport-thread-safe-clnt-destruction.patch
|
Patch08: backport-thread-safe-clnt-destruction.patch
|
||||||
|
Patch09: backport-fix-rpc_gss_seccreate-passed-in-cred.patch
|
||||||
|
|
||||||
BuildRequires: automake autoconf libtool pkgconfig krb5-devel
|
BuildRequires: automake autoconf libtool pkgconfig krb5-devel
|
||||||
|
|
||||||
@ -73,6 +74,9 @@ mv %{buildroot}%{_mandir}/man3 %{buildroot}%{_mandir}/man3t
|
|||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 10 2024 gaihuiying <eaglegai@163.com> - 1.2.6-5
|
||||||
|
- backport to fix rpc_gss_seccreate passed in credential
|
||||||
|
|
||||||
* Wed Nov 16 2022 gaihuiying <eaglegai@163.com> - 1.2.6-4
|
* Wed Nov 16 2022 gaihuiying <eaglegai@163.com> - 1.2.6-4
|
||||||
- backport to fix "mount.nfs: Cannot allocate memory" error
|
- backport to fix "mount.nfs: Cannot allocate memory" error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user