From 467bbeddfa00be5f5bb31762d443c72629f457a4 Mon Sep 17 00:00:00 2001 From: Zhiqiang Liu Date: Sat, 29 Jan 2022 14:46:12 +0800 Subject: [PATCH] nfs-utils: set use-gss-proxy=1 to enable gss-proxy by default In commit 104f90f4ce ('gssd: Introduce use-gss-proxy boolean to nfs.conf'), use-gss-proxy par in [gssd] section of nfs.conf is introduced to allow the used of the gssprox-mech. However, the default value of use-gss-proxy is false, which cause different behavor with older version. In order to be consistent with the old versions, here we set use-gss-proxy to true in nfs.conf. Fix issue: https://gitee.com/src-openeuler/nfs-utils/issues/I4RUCG Signed-off-by: Zhiqiang Liu (cherry picked from commit 4b655089f71360b132b1d580c684e162081be223) --- ...e-gss-proxy-1-to-enable-gss-proxy-by.patch | 35 +++++++++++++++++++ nfs-utils.spec | 7 +++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 0003-nfs-utils-set-use-gss-proxy-1-to-enable-gss-proxy-by.patch diff --git a/0003-nfs-utils-set-use-gss-proxy-1-to-enable-gss-proxy-by.patch b/0003-nfs-utils-set-use-gss-proxy-1-to-enable-gss-proxy-by.patch new file mode 100644 index 0000000..8787db6 --- /dev/null +++ b/0003-nfs-utils-set-use-gss-proxy-1-to-enable-gss-proxy-by.patch @@ -0,0 +1,35 @@ +From 2d1df7efe8e178721be9177e8ee0622e29991950 Mon Sep 17 00:00:00 2001 +From: Zhiqiang Liu +Date: Sat, 29 Jan 2022 14:40:18 +0800 +Subject: [PATCH] nfs-utils: set use-gss-proxy=1 to enable gss-proxy by default + +In commit 104f90f4ce ('gssd: Introduce use-gss-proxy boolean to nfs.conf'), +use-gss-proxy par in [gssd] section of nfs.conf is introduced to +allow the used of the gssprox-mech. However, the default value +of use-gss-proxy is false, which cause different behavor with older +version. + +In order to be consistent with the old versions, here we set +use-gss-proxy to true in nfs.conf. + +Signed-off-by: Zhiqiang Liu +--- + nfs.conf | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/nfs.conf b/nfs.conf +index 186a5b1..955abea 100644 +--- a/nfs.conf ++++ b/nfs.conf +@@ -16,7 +16,7 @@ + # rpc-verbosity=0 + # use-memcache=0 + # use-machine-creds=1 +-# use-gss-proxy=0 ++use-gss-proxy=0 + # avoid-dns=1 + # limit-to-legacy-enctypes=0 + # context-timeout=0 +-- +1.8.3.1 + diff --git a/nfs-utils.spec b/nfs-utils.spec index 3d5bf7f..4e30772 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -4,7 +4,7 @@ Name: nfs-utils Version: 2.5.1 -Release: 4 +Release: 5 Epoch: 1 Summary: The Linux NFS userland utility package License: MIT and GPLv2 and GPLv2+ and BSD @@ -15,6 +15,7 @@ Source0: https://www.kernel.org/pub/linux/utils/nfs-utils/%{version}/%{name}-%{v Patch0: 0000-systemd-idmapd-require-rpc-pipefs.patch Patch1: 0001-correct-the-statd-path-in-man.patch Patch2: 0002-fix-coredump-in-bl_add_disk.patch +Patch3: 0003-nfs-utils-set-use-gss-proxy-1-to-enable-gss-proxy-by.patch BuildRequires: libevent-devel,libcap-devel, libtirpc-devel libblkid-devel BuildRequires: krb5-libs >= 1.4 autoconf >= 2.57 openldap-devel >= 2.2 @@ -223,6 +224,10 @@ fi %{_mandir}/*/* %changelog +* Sat Jan 29 2022 Zhiqiang Liu - 2.5.1-5 +- In order to be consistent with the old versions, here we set + use-gss-proxy to true in nfs.conf. + * Tue Nov 30 2021 yanglongkang - 2.5.1-4 - fix nfs-blkmapd service core dump -- Gitee