From b1fbacc8363c5342c8b9d417fc1041bb42c2143e Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Mon, 4 Mar 2024 12:01:17 -0500 Subject: [PATCH] Fix rpc_gss_seccreate() usage of the passed in gss credential. (RHEL-27936) Signed-off-by: Steve Dickson Resolves: RHEL-27936 --- libtirpc-1.3.3-gssd-context-creation.patch | 30 ++++++++++++++++++++++ libtirpc.spec | 6 ++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 libtirpc-1.3.3-gssd-context-creation.patch diff --git a/libtirpc-1.3.3-gssd-context-creation.patch b/libtirpc-1.3.3-gssd-context-creation.patch new file mode 100644 index 0000000..32e6dc5 --- /dev/null +++ b/libtirpc-1.3.3-gssd-context-creation.patch @@ -0,0 +1,30 @@ +commit 22b1c0cd6076dcd7df822cd1181e98278dc865db +Author: Olga Kornievskaia +Date: Wed Jan 3 17:50:42 2024 -0500 + + 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 + Signed-off-by: Olga Kornievskaia + Signed-off-by: Steve Dickson + +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; + } + diff --git a/libtirpc.spec b/libtirpc.spec index a330c77..72f0c7d 100644 --- a/libtirpc.spec +++ b/libtirpc.spec @@ -2,7 +2,7 @@ Name: libtirpc Version: 1.3.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Transport Independent RPC Library License: SISSL and BSD URL: http://git.linux-nfs.org/?p=steved/libtirpc.git;a=summary @@ -28,6 +28,7 @@ Patch003: libtirpc-1.3.3-dos-sleep.patch # RHEL9.4 # Patch004: libtirpc-1.3.3-null-ptrs-not-reused.patch +Patch005: libtirpc-1.3.3-gssd-context-creation.patch %description This package contains SunLib's implementation of transport-independent @@ -128,6 +129,9 @@ mv %{buildroot}%{_mandir}/man3 %{buildroot}%{_mandir}/man3t %{_mandir}/*/* %changelog +* Mon Mar 4 2024 Steve Dickson - 1.3.3-5 +- Fix rpc_gss_seccreate() usage of the passed in gss credential. (RHEL-27936) + * Mon Feb 19 2024 Pavel Reichl - 1.3.3-4 - Add gating tests (rhel-7883)