1
0
forked from pool/nfs-utils

Compare commits

..

124 Commits

Author SHA256 Message Date
Ana Guerrero
eca6975045 Accepting request 1194950 from Base:System
- add 0001-gssd-revert-commit-a5f3b7ccb01c.patch,
  0002-gssd-revert-commit-513630d720bd.patch,
  0003-gssd-switch-to-using-rpc_gss_seccreate.patch,
  0004-gssd-handle-KRB5_AP_ERR_BAD_INTEGRITY-for-machine-cr.patch,
  0005-gssd-handle-KRB5_AP_ERR_BAD_INTEGRITY-for-user-crede.patch,
  0006-configure-check-for-rpc_gss_seccreate.patch: fixes for
  libtirpc 1.3.5

- drop reenable-nfsv2.patch (poo#106679)
  Fix crash when rpc-gssd run with -v.
- Replace references to /var/adm/fillup-templates with new
  options.
- do not strip the binaries
- mkinitrd-boot.sh: allow other mkinitrd-setup
- nfs-utils-eperm-fallback.patch:  mount.nfs
  Includes new config file: /etc/nfsmount.conf and
- Kill processes on NFS mounts when unmounting
  bnc#442490
  * fix typo in handling of "init.d/nfs status"
- nfs.init:
  * unmount rpc_pipefs
- fix sysconfig filename for changed fillup call
   services (gssd and idmpad have been rolled in to nfs/nfsserver).
- remove svcinfo.d dir as it is provided now by filesystem
- update to version 1.1.2
- uses libgssglue instead of libgssapi
- add rpcbind support [fate#300607]
- added gssapi to buildrequires
  (#116355)
  showmount has been removed there (#309782)

OBS-URL: https://build.opensuse.org/request/show/1194950
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=182
2024-08-21 21:24:49 +00:00
99d3e0d9fa - add 0001-gssd-revert-commit-a5f3b7ccb01c.patch,
0002-gssd-revert-commit-513630d720bd.patch,
  0003-gssd-switch-to-using-rpc_gss_seccreate.patch,
  0004-gssd-handle-KRB5_AP_ERR_BAD_INTEGRITY-for-machine-cr.patch,
  0005-gssd-handle-KRB5_AP_ERR_BAD_INTEGRITY-for-user-crede.patch,
  0006-configure-check-for-rpc_gss_seccreate.patch: fixes for
  libtirpc 1.3.5
- drop reenable-nfsv2.patch (poo#106679)
  Fix crash when rpc-gssd run with -v.
- Replace references to /var/adm/fillup-templates with new
  options.
- do not strip the binaries
- mkinitrd-boot.sh: allow other mkinitrd-setup
- nfs-utils-eperm-fallback.patch:  mount.nfs
  Includes new config file: /etc/nfsmount.conf and
- Kill processes on NFS mounts when unmounting
  bnc#442490
  * fix typo in handling of "init.d/nfs status"
- nfs.init:
  * unmount rpc_pipefs
- fix sysconfig filename for changed fillup call
   services (gssd and idmpad have been rolled in to nfs/nfsserver).
- remove svcinfo.d dir as it is provided now by filesystem
- update to version 1.1.2
- uses libgssglue instead of libgssapi
- add rpcbind support [fate#300607]
- added gssapi to buildrequires
  (#116355)
  showmount has been removed there (#309782)
- added README.NFSv4 (#182775)

OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=285
2024-08-20 20:22:12 +00:00
Ana Guerrero
05ba8ea61f Accepting request 1169773 from Base:System
- nfs-utils.spec: Provide nfsidmap as well as obsoleting it.
  (bsc#1222947)

- Update to version 2.6.4
  - https://kernel.org/pub/linux/utils/nfs-utils/2.6.4/2.6.4-Changelog
  - includes fixes for bsc#1210997
- Removed patchs from this release
  - 0001-export-fix-handling-of-error-from-match_fsid.patch
- Added some upstream patches
  - 0001-exportfs-remove-warning-if-neither-subtree_check-or-.patch
  - 0002-conffile-don-t-report-error-from-conf_init_file.patch
  - 0003-conffile-allow-usr-etc-to-provide-any-config-files-e.patch
  - 0004-fsidd-call-anonymous-sockets-by-their-name-only-don-.patch
  These fix minor bugs and allow config files to be in /usr/etc.
  So also move config files to /usr/etc and create directories
  foo.conf.d for each config file, so other config file can easily
  be addded.
  (boo#1216740)

OBS-URL: https://build.opensuse.org/request/show/1169773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=181
2024-06-17 17:27:17 +00:00
Ana Guerrero
673a2eaae3 Accepting request 1126501 from Base:System
- Build with --enable-junction so that nfsref is built
  https://lore.kernel.org/linux-nfs/DFBBA6DD-7F22-4A38-BAA2-DBD40EB81BB9@oracle.com/

OBS-URL: https://build.opensuse.org/request/show/1126501
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=180
2023-11-15 20:07:02 +00:00
Ana Guerrero
83163c6153 Accepting request 1117914 from Base:System
- 0001-export-fix-handling-of-error-from-match_fsid.patch
  Errors from match_fsid() shouldn't be fatal.
  (bsc#1214540)

OBS-URL: https://build.opensuse.org/request/show/1117914
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=179
2023-10-16 20:32:44 +00:00
bd18ed3b43 Accepting request 1082338 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1082338
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=178
2023-04-24 20:30:53 +00:00
2f4a513b91 Accepting request 1075133 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1075133
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=177
2023-04-01 19:13:19 +00:00
86453a4da0 Accepting request 1063330 from Base:System
- Rename all drop-in options.conf files as 10-options.conf
  This makes it easier for other packages to over-ride
  with a drop-in with a later sequence number.
  resource-agents does this.
  (bsc#1207843)

OBS-URL: https://build.opensuse.org/request/show/1063330
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=176
2023-02-07 17:47:24 +00:00
8f8dc2c589 Accepting request 1037197 from Base:System
- Add 0006-nfsd-allow-server-scope-to-be-set-with-config-or-com.patch
  Allow server scope to be set - removes the need to run nfsd
  inside a private UTS namespace for fail-over applications
  (bsc#1203746)

OBS-URL: https://build.opensuse.org/request/show/1037197
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=175
2022-11-23 08:47:31 +00:00
6d3d5bb751 Accepting request 999331 from Base:System
- sysconfig.nfs, nfs.conf: allow NFSv4 grace time to be set
  via sysconfig.
  SLE12 allowed this, SLE15 lost the ability.  Add it back
  with the name NFSV4GRACETIME.  Also improve description
  for NFSV4LEASETIME.
  (bsc#1202592)

OBS-URL: https://build.opensuse.org/request/show/999331
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=174
2022-08-27 09:47:52 +00:00
Richard Brown
614384561c Accepting request 995255 from Base:System
- Update to version 2.6.2
  - https://kernel.org/pub/linux/utils/nfs-utils/2.6.2/2.6.2-Changelog
- Remove patches from this release:
  - gcc12-fix.patch
  - 0001-systemd-Apply-all-sysctl-settings-when-NFS-related-m.patch
  - 0002-Update-autoconfig-files-to-work-with-v2.71.patch
  - 0003-autoconf-change-tirpc-to-check-for-a-file-not-for-an.patch
  - 0004-modprobe-protect-against-sysctl-errors.patch
- Refresh nfs-utils-1.0.7-bind-syntax.patch
- Added files:
  - /usr/lib/udev/rules.d/99-nfs.rules
  - /usr/libexec/nfsrahead
  - /usr/sbin/rpcctl
  - /usr/share/man/man5/nfsrahead.5.gz
  - /usr/share/man/man8/rpcctl.8.gz
- Sort man page entries in %files section

OBS-URL: https://build.opensuse.org/request/show/995255
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=173
2022-08-17 16:16:34 +00:00
81189f62a0 Accepting request 988230 from Base:System
- 0004-modprobe-protect-against-sysctl-errors.patch
  0005-modprobe-avoid-error-messages-if-sbin-sysctl-fail.patch
 Suppress any errors from /sbin/sysctl, if for example, it isn't
 installed
 (bsc#1200710)

OBS-URL: https://build.opensuse.org/request/show/988230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=172
2022-07-12 09:11:53 +00:00
6fbf282f2b Accepting request 981442 from Base:System
- 0001-systemd-Apply-all-sysctl-settings-when-NFS-related-m.patch
  Ensure sysctl setting work (bsc#1199856)
- 0002-Update-autoconfig-files-to-work-with-v2.71.patch
- 0003-autoconf-change-tirpc-to-check-for-a-file-not-for-an.patch
  Update for latest autoconf

OBS-URL: https://build.opensuse.org/request/show/981442
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=171
2022-06-10 13:57:18 +00:00
61638f20fe Accepting request 977244 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/977244
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=170
2022-05-16 16:07:33 +00:00
38734b90f0 Accepting request 963727 from Base:System
- drop reenable-nfsv2.patch (poo#106679)

OBS-URL: https://build.opensuse.org/request/show/963727
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=169
2022-03-23 19:15:49 +00:00
416e933f87 Accepting request 960295 from Base:System
- add reenable-nfsv2.patch for reverting nfsv2 deprecation until
  test coverage is fixed  (poo#106679)

- Add gcc12-fix.patch upstream fix for GCC 12 compiler.

- Update to version 2.6.1
  - https://kernel.org/pub/linux/utils/nfs-utils/2.6.1/2.6.1-Changelog
- remove patches from this release:
  - 0001-gssd-fix-crash-in-debug-message.patch,
  - Add-disable-sbin-override-for-when-sbin-is-a-symlink.patch

OBS-URL: https://build.opensuse.org/request/show/960295
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=168
2022-03-11 20:39:59 +00:00
357051827a Accepting request 928432 from Base:System
OBS-URL: https://build.opensuse.org/request/show/928432
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=167
2021-11-04 15:16:15 +00:00
f214b360ae Accepting request 927402 from Base:System
- add Add-disable-sbin-override-for-when-sbin-is-a-symlink.patch
  and use it to move last few binaries from /sbin to /usr/sbin
  (bsc#1191082)
- Move nfsdclddb and nfsdclnts from nfs-client to
  nfs-kernel-server and fix their permissions.

OBS-URL: https://build.opensuse.org/request/show/927402
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=166
2021-10-29 20:33:36 +00:00
99a02911ea Accepting request 917833 from Base:System
- Add 0001-gssd-fix-crash-in-debug-message.patch
  Fix crash when rpc-gssd run with -v. 
  (boo#1190144)

OBS-URL: https://build.opensuse.org/request/show/917833
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=165
2021-09-13 14:24:24 +00:00
Richard Brown
fd7c3c1d4b Accepting request 911141 from Base:System
- Remove dependency on fedfs-utils-devel.
  fedfs-utils was only ever a "technology preview" and is now
  considered "end of life".
  nfs-utils is not even built to use it as --enable-junction
  isn't being passed to confgure
  and fedfs-utils doesn't build wth glibc 2.34.
  So remove the unnecessary dependency on fedfs-utils.
  (bsc#1189085)

- Update to version 2.5.4
  https://mirrors.edge.kernel.org/pub/linux/utils/nfs-utils/2.5.4/2.5.4-Changelog
  Notable changes:
  * Handle failures in gssd better
  * handle 'sloppy' option to mount better
  * minor documentation improvements
- Drop 2.5.4-rc4 patches: nfs-utils-2-5-4-rc1.patch, nfs-utils-2-5-4-rc2.patch,
  nfs-utils-2-5-4-rc3.patch, nfs-utils-2-5-4-rc4.patch.

OBS-URL: https://build.opensuse.org/request/show/911141
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=164
2021-08-12 07:01:15 +00:00
a62ae64dfa Accepting request 895272 from Base:System
Mention patches in changelog (required in Factory):
  - nfs-utils-2-5-4-rc4.patch
  - nfs-utils-2-5-4-rc3.patch
  - nfs-utils-2-5-4-rc2.patch
  - nfs-utils-2-5-4-rc1.patch (forwarded request 895268 from pevik)

OBS-URL: https://build.opensuse.org/request/show/895272
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=163
2021-06-01 08:32:54 +00:00
d5c81f6bb7 Accepting request 891928 from Base:System
- Add 0001-Replace-all-var-run-with-run.patch
  Use /run instead of /var/run
  (bsc#1185170)

OBS-URL: https://build.opensuse.org/request/show/891928
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=162
2021-05-12 17:31:32 +00:00
Richard Brown
3709bdfad4 Accepting request 878422 from Base:System
- Include nfsd kernel module Requires (bsc#1089118) (forwarded request 878304 from gmoro)

OBS-URL: https://build.opensuse.org/request/show/878422
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=161
2021-03-16 14:43:37 +00:00
ca919164c0 Accepting request 877825 from Base:System
- Update to version 2.5.3
  https://mirrors.edge.kernel.org/pub/linux/utils/nfs-utils/2.5.3/2.5.3-Changelog

OBS-URL: https://build.opensuse.org/request/show/877825
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=160
2021-03-11 19:07:14 +00:00
7bbe1ec571 Accepting request 847956 from Base:System
- Add missing ldconfig calls for libnfsidmap1.
[that is, unless there are already concrete plans to employ file triggers instead]

- Throw out some remaining old rpm constructs. (forwarded request 847812 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/847956
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=159
2020-11-15 14:24:15 +00:00
31b2cc2d5c Accepting request 844948 from Base:System
- Update to version 2.5.2
  - fixed a couple memory leaks and other bug fixes,
  - a lot of clean up
- Refresh nfs-utils-1.0.7-bind-syntax.patch
- Use %autosetup -p1 (forwarded request 844899 from pevik)

OBS-URL: https://build.opensuse.org/request/show/844948
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=158
2020-11-02 13:03:49 +00:00
41babc7a6b Accepting request 838679 from Base:System
- Remove nfs-doc package.  The documentation is 20 years old
  and barely relevant.
  (bsc#1171448)

- Update to version 2.5.1
  Dropped patch accepted upstream:
  0001-conffile-Don-t-give-warning-for-optional-config-file.patch
  - improvements for 64bit time
  - improvements for SASL referrals
  - Rename clddb-tool to nfsdclddb
  - New tools  nfsdclnts
  - Better python3 support
  - many bug-fixes

OBS-URL: https://build.opensuse.org/request/show/838679
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=157
2020-10-03 16:53:56 +00:00
d5b0642d2a Accepting request 817957 from Base:System
OBS-URL: https://build.opensuse.org/request/show/817957
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=156
2020-07-02 21:54:33 +00:00
2316e32c5b Accepting request 810693 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/810693
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=155
2020-06-11 12:39:17 +00:00
c984125dc7 Accepting request 791592 from Base:System
- Remove obsolete useradd call (forwarded request 791188 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/791592
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=154
2020-04-09 21:14:00 +00:00
a99cae137d Accepting request 788739 from Base:System
- Improve the hack to avoid python dependencies.
  A new python script had been added since that hack was written.
  (boo#1166067)

- 0001-conffile-Don-t-give-warning-for-optional-config-file.patch
  Support optional include files correctly
  (boo#1164619)

- Update nfs.conf
  - change value: udp=n (disabled in 2.2.1.)
  - update name: manage-gids
  - new: verbosity=0, rpc-verbosity=0, use-gss-proxy=0, rdma-port=20049,
	no-notify=0, force=0, lift-grace=y

OBS-URL: https://build.opensuse.org/request/show/788739
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=153
2020-03-31 15:31:47 +00:00
d3ffab3b4c Accepting request 784479 from Base:System
- statd-user.conf: create user via sysusers.d template
- Use ordering for systemd instead of hard requires (forwarded request 782892 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/784479
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=152
2020-03-16 09:16:01 +00:00
71ae7528f6 Accepting request 773539 from Base:System
-  Update to version 2.4.3
   Dropped patches (accepted upstream):
   - 0001-nfs.conf-allow-empty-assignments.patch
   - 0002-Let-systemd-know-when-rpc.statd-is-needed.patch
   - 0003-systemd-run-statd-notify-even-when-nfs-client-isn-t-.patch
   - 0004-nfsidmap-honour-with-pluginpath-for-instalation.patch
   - 0005-nfs.conf-fail-to-disable-major-NFS-version-4-using-v.patch
   - 0006-conffile-allow-optional-include-files.patch
   - 0007-statd-user-from-sm
   - 0008-mountd-Initialize-logging-early.patch
   Dropped patches (upstream used different solution):
   - 0009-Allow-compilation-to-succeed-with-fno-common.patch (btw this used
	 Patch0: instead of Patch10:) (boo#1160405)
   
   Add nfsdcld - NFSv4 Client Tracking Daemon, add nfsdcld.service and enable it
   for nfs-kernel-server, add man page
   Add clddb-tool - tool for downgrading the nfsdcld sqlite database schema,
   add man page
   Removed osd_login (dropped in upstream in 2.3.4 rc1) (forwarded request 773318 from pevik)

OBS-URL: https://build.opensuse.org/request/show/773539
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=151
2020-02-15 21:24:19 +00:00
dae2dd9a7f Accepting request 750032 from Base:System
- nfs-utils.spec - don't chown when not needed.
  Only chown directories in /var/lib/nfs to statd
  if they are currently owned by root.
  The chown is needed for some upgrades, but if the
  dirs are already owned by statd, an vulnerability in
  statd could be escalated to root.
  (bsc#1157321)

OBS-URL: https://build.opensuse.org/request/show/750032
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=150
2019-11-23 22:46:21 +00:00
d4d7191993 Accepting request 732555 from Base:System
- Delete  0006-nfs.conf-silence-include-error.patch
  replaced with better version
- 0006-conffile-allow-optional-include-files.patch
   Avoid error if /etc/nfs.conf.local doesn't exist
  (bsc#1151044 bsc#1150807)
- 0008-mountd-Initialize-logging-early.patch
 Don't close the loging socket - it causes problems.
  (bsc#1151044 bsc#1150807)

- Don't make /var/lib/nfs owned by statd.
  Only sm and sm.bak need to be accessible by
  statd or sm-notify after they drop privs.
  Providing they get created, the parent
  directory can be root-owned.
- 0007-statd-user-from-sm
  Change rpc.statd and sm-notify to take uid from the sm
  directory.
  (bsc#1150733 CVE-2019-3689)

- 0006-nfs.conf-silence-include-error.patch
 Avoid an unhelpful warning (bsc#1150807)

OBS-URL: https://build.opensuse.org/request/show/732555
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=149
2019-09-24 23:35:24 +00:00
3df2199cbd Accepting request 727642 from Base:System
- 0005-nfs.conf-fail-to-disable-major-NFS-version-4-using-v.patch
  Fix a bug that cause NFSv4 service to always be enabled, if
  the server was enabled at all.

- removal of SuSEfirewall2 service, since SuSEfirewall2 has been replaced by
  firewalld, see [1].
  [1]: https://lists.opensuse.org/opensuse-factory/2019-01/msg00490.html

- remove libnfsidmap1 dependency for nfs-client.
  It isn't needed.

- Remove service aliases - these files are deleted.
   nfs.service
   nfsserver.service
   nfs-server.nfsserver.conf
   nfs-client.nfs.conf
  Now the upstream standard service names "nfs-client" and "nfs-server"
  must be used.

- 0004-nfsidmap-honour-with-pluginpath-for-instalation.patch
  Allow plugins to be installed properly
- nfs-utils.spec
  Package shared library correctly

- 0001-nfs.conf-allow-empty-assignments.patch
  Fix regression due to unnecessary "error" messages from nfs.conf
- 0002-Let-systemd-know-when-rpc.statd-is-needed.patch
  0003-systemd-run-statd-notify-even-when-nfs-client-isn-t-.patch
  Fixes for systemd integration
  (bsc#1116221)

OBS-URL: https://build.opensuse.org/request/show/727642
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=148
2019-09-09 10:32:22 +00:00
bc7ce2fa93 Accepting request 628535 from Base:System
OBS-URL: https://build.opensuse.org/request/show/628535
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=147
2018-08-17 21:58:03 +00:00
dc6a634f72 Accepting request 625583 from Base:System
- nfs.conf: spell NFSV4LEASETIME correctly.
  (bsc#1098532)

OBS-URL: https://build.opensuse.org/request/show/625583
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=146
2018-08-02 12:49:45 +00:00
3943d6b585 Accepting request 621750 from Base:System
OBS-URL: https://build.opensuse.org/request/show/621750
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=145
2018-07-13 08:18:39 +00:00
283d38551d Accepting request 546722 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/546722
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=144
2017-12-06 07:47:40 +00:00
a9530f0412 Accepting request 532009 from Base:System
- fix incorrect dependency in
  /usr/lib/systemd/system/nfs-client.target.d/nfs.conf
  When yast restarts "nfs" it should propagate to nfs-client,
  but doesn't.
  (boo#1053691)

OBS-URL: https://build.opensuse.org/request/show/532009
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=143
2017-10-13 12:03:21 +00:00
4e5019372c Accepting request 513638 from Base:System
- nsm-headers.patch: add missing <stdint.h> (forwarded request 513155 from Andreas_Schwab)

OBS-URL: https://build.opensuse.org/request/show/513638
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=142
2017-08-10 11:45:52 +00:00
f266bdf49a Accepting request 493620 from Base:System
- Prerequire needed group "nogroup" (forwarded request 493421 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/493620
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=141
2017-05-10 18:33:28 +00:00
985935d19b Accepting request 456559 from Base:System
- update upstream version from 1.3.4 to 2.1.1
  The significant update is that configuration can
  now be read from a central /etc/nfs.conf file, and
  it can include other files such as /etc/sysconfig/nfs
  This means that the old nfs-config.service systemd
  unit is no longer needed.
- /etc/nfs.conf file created to import all sysconfig
  settings except *_OPTIONS directly into running code.
- dropins created to pass *_OPTIONS sysconfig setting to
  the various daemons.
- various specfile improvements, such as using "-D" in
  "install" commands, and adding "verify_permissions".
- "xtab" has not been needed for years and has now been remove.
- sysconfig.nfs updated, particular the ServiceRestart
  declarations have been tuned for systemd units.
- 0003-nfs-server-generator-handle-noauto-mounts-correctly.patch
  Fix the nfs-server-generator so that mounts marked "noauto"
  are not automatically mounted when NFS exported.
  (bsc#1019211)
- 0001-conffile-ignore-empty-environment-variables.patch
  0002-mount-call-setgroups-before-setuid.patch
  Other minor fixes found during testing.
- REMOVED 0001-Make-location-of-nfs-utils_env.sh-configurable.patch
  now included upstream

OBS-URL: https://build.opensuse.org/request/show/456559
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=140
2017-02-16 15:41:48 +00:00
c6ed9126ee Accepting request 454361 from Base:System
- Check for existence of "statd" user before creating it,
  and do not suppress errors about it.
- Ensure units passed to %service_* are full filenames.
- Pass all units (non-templated) to %service_*. (forwarded request 454101 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/454361
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=139
2017-02-07 10:57:50 +00:00
ed2bf79205 Accepting request 440332 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/440332
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=138
2016-11-17 12:09:18 +00:00
ddc813cf09 Accepting request 437583 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/437583
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=137
2016-11-02 11:28:48 +00:00
9d338a5aac Accepting request 420772 from Base:System
- 0001-Make-location-of-nfs-utils_env.sh-configurable.patch
  1.3.4 moved the config script location to somewhere
  that doesn't exist on openSUSE.  Move it somewhere
  better and install it there.
  (bsc#990356)

OBS-URL: https://build.opensuse.org/request/show/420772
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=136
2016-08-25 07:50:38 +00:00
f911d1d37b Accepting request 418051 from Base:System
- nfs-utils-1.3.4.tar.xz
  New upstream release.  Lots of bugfixes, no significant
  functionality changes
- delete 0001-Fix-protocol-minor-version-fall-back.patch
  delete 0001-close-the-syslog-fd-in-daemon_init.patch
  delete 0001-mount-run-START_STATD-fully-as-root.patch
  delete 0001-mount.nfs-hide-EBUSY-errors.patch
  delete 0001-mount.nfs-trust-the-exit-status-of-start_statd.patch
  delete 0001-systemd-Decouple-the-starting-and-stopping-of-rpcbin.patch
  delete 0002-systemd-unit-files-fix-up-dependencies-on-rpcbind.patch
  delete nfs-utils-no-svcgss.service
  delete nfs-utils-uninit-mem.patch
  All patches are included in 1.3.4

- nfs-utils_env.sh
  Fix some problems with version_params.
  Various misspellings and remove the possiblity
  that V4 is both disabled and enabled.
  (bsc#990356)

- Drop OMC svcinfo file, nowdays useless

- Sort a bit with spec-cleaner to get uptodate spec
- Convert deps from regular devels to pkgconfig style

OBS-URL: https://build.opensuse.org/request/show/418051
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=135
2016-08-18 07:15:14 +00:00
b14cb124c7 Accepting request 397797 from Base:System
- 0001-systemd-Decouple-the-starting-and-stopping-of-rpcbin.patch
  0002-systemd-unit-files-fix-up-dependencies-on-rpcbind.patch
 Fix systemd dependencies to ensure rpcbind is started when needed.
 (bsc#975265)

OBS-URL: https://build.opensuse.org/request/show/397797
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=134
2016-06-02 10:48:50 +00:00
c1b7e57354 Accepting request 391216 from Base:System
- 0001-close-the-syslog-fd-in-daemon_init.patch
  Without this, tracing doesn't work
- 0001-mount.nfs-trust-the-exit-status-of-start_statd.patch
  (bsc#945937)
- 0001-mount-run-START_STATD-fully-as-root.patch
  (bsc#969152)

OBS-URL: https://build.opensuse.org/request/show/391216
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=133
2016-04-28 14:50:50 +00:00
7a034a6566 Accepting request 384348 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/384348
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=132
2016-04-11 07:12:20 +00:00
4fbe0d90ce Accepting request 363875 from Base:System
- 0001-mount.nfs-hide-EBUSY-errors.patch
  Stop "mount -a -t nfs" from complaining if filesystem
  already mounted (bsc#950340)

OBS-URL: https://build.opensuse.org/request/show/363875
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=131
2016-03-07 12:25:44 +00:00
64fe6dcef9 Accepting request 361326 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/361326
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=130
2016-02-28 01:28:14 +00:00
c00fe84b3a Accepting request 347191 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/347191
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=129
2015-12-03 12:29:33 +00:00
Stephan Kulow
81c55c47d0 Accepting request 345042 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/345042
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=128
2015-11-24 21:31:47 +00:00
a6ee7ecd83 Accepting request 343060 from Base:System
- Use proper annotations for service restart (bsc#952055).

- update upstream version from 1.3.1 to 1.3.3.
  This contains lots of bugfixes but not significant new features.
- delete 0001-nfs-client.target-Removed-a-ordering-cycle-with-nfs-.patch
  delete 0002-Centralize-dependencies-on-the-auth-unit.patch
   both included upstream
- nfs-utils-no-svcgss.service
  fix minor make-install issue (has since been accepted upstream)
- use "make install" to install systemd files instead of hand-code.
- retain rpc-svcgssd for now until gss-proxy is packaged.

OBS-URL: https://build.opensuse.org/request/show/343060
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=127
2015-11-12 18:36:57 +00:00
e85c6d7c9f Accepting request 340327 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/340327
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=126
2015-10-28 16:17:43 +00:00
Stephan Kulow
c4af0a6187 Accepting request 335648 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/335648
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=125
2015-10-12 08:00:33 +00:00
Stephan Kulow
7f805e900d Accepting request 324736 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/324736
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=124
2015-08-25 05:17:33 +00:00
5551802674 Accepting request 321531 from Base:System
- nfs.service: improve back-compatibility with /etc/init.d/nfs
 + mount and unmount nfs filesystems on start/stop.
 + keep status as "good" when everything is running.
 (bnc#911986)

OBS-URL: https://build.opensuse.org/request/show/321531
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=123
2015-08-11 06:24:56 +00:00
Stephan Kulow
d9fb88e93e Accepting request 265210 from Base:System
Biggest changes here is full systemd integration.

- fix bashisms in pre/post scripts

- new upstream nfs-utils-1.3.1
  This brings numerous fixes, particularly to gssd and
  nfsdcltrack.  It incorporates all the upstreamable
  patches we had:
- Delete  nfsdcltrack.sbin.patch
- Delete  start-statd.patch
- 0001-nfs-client.target-Removed-a-ordering-cycle-with-nfs-.patch
  0002-Centralize-dependencies-on-the-auth-unit.patch
  Patches from 1.3.2-rc, which look useful
- Convert from /etc/init.d startup scripts to full
  systemd integration.
  The upstream standard names are "nfs-client" and "nfs-server"
  rather than "nfs" and "nfsserver", so local "nfs" "nfsserver"
  aliases are created and "rcXXX" links are provided for all 4.

OBS-URL: https://build.opensuse.org/request/show/265210
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=122
2015-07-20 09:16:51 +00:00
Stephan Kulow
12471cd073 Accepting request 248431 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/248431
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=121
2014-09-18 05:12:08 +00:00
Stephan Kulow
7014cf0f69 Accepting request 240874 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/240874
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=119
2014-07-16 14:36:23 +00:00
Stephan Kulow
4b6a5aedc9 Accepting request 239412 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/239412
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=118
2014-07-12 15:14:18 +00:00
Stephan Kulow
1f16da4443 Accepting request 236714 from Base:System
- Use start-statd and rpc-statd.service from upstream for running statd.
  Our start-statd doesn't work in a systemd environment (bnc#852984)
- start-statd.patch - needed to make upstream start-statd work properly.
- use .xz from upstream, that is what kernel.org prefers and it is smaller

- Remove 0001-nfsidmap-Keys-need-to-be-invalidated-instead-of-revo.patch
  Now that keyutils has been updated in Factory, this patch
  is no longer needed.

- Check if systemd is listen on local socket 111 to trigger the
  start of the rpcbind.service on demand (bnc#860246)
- There exists only nfs-utils-1.3.0.tar.gz at
  http://kernel.org/pub/linux/utils/nfs-utils/1.3.0/

- New upstream version 1.3.0.
  Includes all our bugfix patches except 1.
  Adds assorted other bugfixes and improvements including
  initial support for NFSv4.2
  Prepares the way for better systemd integration.
  Discards useless programs gss_clnt_send_err and gss_destroy_creds
- Removes: 0001-mountd-Fix-is_subdirectory-again.patch
- Removes: 0002-gssd-Fix-recent-fix-to-Avoid-DNS-reverse-resolution-.patch
- Removes: 0003-Fix-handling-of-preferred-realm-command-line-option.patch
- Removes: 0004-nfsiostat-restore-output-format.patch
- Removes: 0005-gssd-don-t-give-up-on-machine-credential-if-hostname.patch
- Removes: 0006-gssd-fixed-typo-in-machine-cred-name.patch
- Removes: skip-on-ENOENT.patch
- Removes: mountd-fix-bug-affecting-exports-of-dirs-with-64bit-.patch
- Removes: exportfs-exit-with-error-code-if-there-was-any-error.patch
- Removes: exportfs-report-failure-if-asked-to-unexport-somethi.patch

OBS-URL: https://build.opensuse.org/request/show/236714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=117
2014-06-18 08:59:26 +00:00
Stephan Kulow
fd209d90ce Accepting request 233659 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/233659
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=116
2014-05-14 08:50:22 +00:00
Stephan Kulow
aaeabf3d3b Accepting request 230414 from Base:System
- Remove mkinitrd bits -> we use dracut now which already has
  nfs stuff provided in its package in:
  /usr/lib/dracut/modules.d/95nfs/
  Remove sources:
    - mkinitrd-boot.sh
    - mkinitrd-setup.sh (forwarded request 230357 from trenn)

OBS-URL: https://build.opensuse.org/request/show/230414
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=115
2014-04-23 15:28:11 +00:00
Stephan Kulow
ad9796d0fd Accepting request 226621 from Base:System
- properly rename patches:
  udp-fallback.fix -> udp-fallback-fix.patch
  fedfs-lib-name -> fedfs-lib-name.patch
  gssd-mount-hang-fix -> gssd-mount-hang-fix.patch (forwarded request 225529 from dirkmueller)

OBS-URL: https://build.opensuse.org/request/show/226621
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=114
2014-03-20 05:53:35 +00:00
Stephan Kulow
f43ddda523 Accepting request 222653 from Base:System
- udp-fallback.fix: Fix fallback from tcp to udp
  (bnc#863749)

OBS-URL: https://build.opensuse.org/request/show/222653
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=113
2014-02-19 17:54:59 +00:00
Stephan Kulow
ca21bcbb7c Accepting request 221761 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/221761
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=112
2014-02-15 07:14:03 +00:00
Stephan Kulow
2a101114d3 Accepting request 208643 from Base:System
- nfsserver.init: fix that typo properly.
  Somehow I only fixed part of the problem
  (bnc#849476)

OBS-URL: https://build.opensuse.org/request/show/208643
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=111
2013-11-28 06:38:10 +00:00
Stephan Kulow
d394ab8463 Accepting request 208502 from Base:System
- If nfs-utils and autofs are both installed make sure that the nfs
  client boot service will be started before autofs as otherwise
  systemd dependency chain is waiting on nfs client services at
  shutdown if nfs client is enabled.

OBS-URL: https://build.opensuse.org/request/show/208502
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=110
2013-11-26 18:21:37 +00:00
Tomáš Chvátal
eda802ebca Accepting request 207415 from Base:System
- nfsserver.init: fix typo in "--nfs-version 4".
  (bnc#849476)

- gssd-mount-hang-fix: An nfs mount will hang
  indefinitely if mounted by IP address and there
  is no reverse mapping available.  This is
  caused by a bug in gssd.
  (bnc#833543)

OBS-URL: https://build.opensuse.org/request/show/207415
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=109
2013-11-18 09:53:38 +00:00
Stephan Kulow
9d21c95f1c Accepting request 206703 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/206703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=108
2013-11-15 12:29:45 +00:00
Tomáš Chvátal
413941faf9 Accepting request 204251 from Base:System
nfs-utils bugfix for Factory (and 13.1 if possible)

- mountd-fix-bug-affecting-exports-of-dirs-with-64bit-.patch
  allow NFS export to work for XFS filesystems with INODE64
  (bnc#841971)

- nfs.init: run ldconfig directly rather than calling
  boot.ldconfig.
  boot.ldconfig had some "optimisations" which are
  unimportant and inconvenient for NFS, and doesn't
  exist any more anyway.
  (bnc#834164).

OBS-URL: https://build.opensuse.org/request/show/204251
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=107
2013-10-22 08:20:46 +00:00
Stephan Kulow
77848b611f Accepting request 197461 from Base:System
- nfs.init: always start gssd.
  Recent kernel change means that if gssd isn't running
  and NFSv4 mount will wait 15 seconds before timing out
  even if gss security wasn't requested.
  So just start gssd alway - there is no significant cost
  in this.
  (bnc#837262)

- skip-on-ENOENT.patch - suppress error message
  that isn't really an error (bnc#800414)

OBS-URL: https://build.opensuse.org/request/show/197461
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=105
2013-09-05 21:21:41 +00:00
Stephan Kulow
55653a01c5 Accepting request 185979 from Base:System
- Include also nfsv2,nfsv3,nfsv4.ko in initrd (bnc#815738)
- Remove usage of absolute paths in mkinitrd script
- Include also mount.nfs4 (forwarded request 185955 from olh)

OBS-URL: https://build.opensuse.org/request/show/185979
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=104
2013-08-06 05:04:04 +00:00
Stephan Kulow
2e649219cd Accepting request 184600 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/184600
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=103
2013-07-30 16:40:42 +00:00
Stephan Kulow
032a802528 Accepting request 175298 from Base:System
- remove sysvinit requires - they are rather harmful these days

OBS-URL: https://build.opensuse.org/request/show/175298
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=102
2013-05-13 17:57:16 +00:00
Stephan Kulow
27554f60d9 Accepting request 158082 from Base:System
Updated nfsserver.init and sysconfig.nfs to add support for setting rpc.mountd options in addition to the port. While it's possible to set these by setting the port and adding them after, this is a nicer implementation.
 (forwarded request 157565 from deadpoint)

OBS-URL: https://build.opensuse.org/request/show/158082
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=101
2013-03-10 07:35:57 +00:00
Stephan Kulow
f9f7761575 Accepting request 143369 from Base:System
- New upstream release 1.2.7.  Adds FedFS support
  to mounted and replaces nfsdcld with
  nfsdcltrack.  This is used to manage client state
  on NFSv4 servers.
  Incorporates more local patches.
- Replace "/var/run" with "/run" in various scripts.
- nfsserver.init: Generate message that "bind=" is deprecated
  if it is used.

OBS-URL: https://build.opensuse.org/request/show/143369
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=99
2012-11-28 15:19:06 +00:00
Ismail Dönmez
e11aaaf5a1 Accepting request 139232 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/139232
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=98
2012-10-25 10:10:38 +00:00
Stephan Kulow
3ddbf07fd7 Accepting request 137343 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/137343
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=97
2012-10-07 17:53:24 +00:00
Stephan Kulow
f7a11240b0 Accepting request 128299 from Base:System
nfs-utils update from Factory and 12.2

- mount-exit-code.fix:  Correct exit code from
  unmount when fs is busy - allows autofs to work
  correctly. (bnc#770962)

OBS-URL: https://build.opensuse.org/request/show/128299
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=96
2012-07-20 08:21:16 +00:00
Stephan Kulow
553a348fc9 Accepting request 121292 from Base:System
New nfs-utils for Factory - and hopefully 12.2.

- nfs upstream version 1.2.5.  Lots of bug fixes
  and improved support for pNFS.
  Adds nfsdcld daemon on osd_login script.
  Removed some very out-of-date documentation.

OBS-URL: https://build.opensuse.org/request/show/121292
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=94
2012-05-21 05:28:50 +00:00
Stephan Kulow
c0824685b6 Accepting request 116824 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/116824
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=93
2012-05-09 16:18:54 +00:00
Stephan Kulow
3336268470 replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=92
2011-12-06 17:32:08 +00:00
Stephan Kulow
fdc953d385 Accepting request 92875 from Base:System
- add libtool as buildrequire to avoid implicit dependency (forwarded request 92660 from coolo)

OBS-URL: https://build.opensuse.org/request/show/92875
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=91
2011-11-22 16:48:54 +00:00
Stephan Kulow
d220ae3fee Accepting request 90199 from Base:System
Allow debuginfo/debugsource to be build properly.

- do not strip the binaries

OBS-URL: https://build.opensuse.org/request/show/90199
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=90
2011-11-07 13:23:08 +00:00
Lars Vogdt
9bc67bc793 Accepting request 87463 from Base:System
- nfs.init: handle case where kernel adds trailing
  slash to name in /proc/mounts.
  (bnc#722431 bnc#720376)

OBS-URL: https://build.opensuse.org/request/show/87463
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=88
2011-10-12 22:09:47 +00:00
Lars Vogdt
5781e58ba3 Accepting request 85882 from Base:System
- Fix build in arm, portability bug, applications MUST
  use sysconf(_SC_PAGESIZE) instead of constant PAGE_SIZE (forwarded request 85881 from elvigia)

OBS-URL: https://build.opensuse.org/request/show/85882
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=87
2011-10-02 08:21:07 +00:00
Sascha Peilicke
c0ddf389b5 Accepting request 84720 from Base:System
- New upstream version 1.2.5 - This adds a new binary
  blkmapd with man page,  This is part of PNFS support.

OBS-URL: https://build.opensuse.org/request/show/84720
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=86
2011-09-26 08:35:45 +00:00
Sascha Peilicke
5788e51bfa Accepting request 79202 from Base:System
- New upstream version 1.2.4 - plus a few important
  patches from git.  This adds a new binary nfsidmap,
  with man page. Also: build with libmount enabled
  to correctly handle /etc/mtab being linked to
  /proc/self/mounts. (bnc#681106)

OBS-URL: https://build.opensuse.org/request/show/79202
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=85
2011-08-18 09:55:45 +00:00
Sascha Peilicke
7c9d9199ed Autobuild autoformatter for 74368
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=84
2011-06-23 11:14:02 +00:00
Sascha Peilicke
4c8b8798a9 Accepting request 74368 from Base:System
Various nfs-utils updates for Factory

- nfs.init,nfsserver.init,sysconfig.nfs - Add support
  for configuring NFS for a fail-over configuration
  with shared state. (bnc#689622)
- rpc.mountd-segfault-fix; fix possible segfault caused
  by "showmount -e" usage. (bnc#693189)
- do-not-error-when-address-family-not-supported -
  suppress socket error when IPv6 is not loaded
  (bnc#670449)
- addmntent.fix - error check writes to /etc/mtab and
  cope accordingly. (bnc#689799)
- mount-catch-signals - don't abort on SIGXSFZ or other
  signals while mtab is locked (bnc#689799)
- mountd-auth-fix - fix bug that could give away incorrect
  access to NFS exported filesystems. (bnc#701702)

OBS-URL: https://build.opensuse.org/request/show/74368
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=83
2011-06-23 11:13:53 +00:00
Sascha Peilicke
af869c57dd Autobuild autoformatter for 74072
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=82
2011-06-20 08:53:27 +00:00
Sascha Peilicke
bab5c06e73 Accepting request 74072 from Base:System
Fix URLs. (forwarded request 74051 from a_jaeger)

OBS-URL: https://build.opensuse.org/request/show/74072
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=81
2011-06-20 08:53:17 +00:00
Sascha Peilicke
2f879af0e0 Autobuild autoformatter for 72489
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=80
2011-06-06 09:53:39 +00:00
Sascha Peilicke
c6787dcef3 Accepting request 72489 from Base:System
- nfsserver.init, sysconfig.nfs: add NFSV4LEASETIME
  parameter to allow lease time to be set.
  bnc#681510

- use /var/run/nfs instead of /var/lock/subsys

OBS-URL: https://build.opensuse.org/request/show/72489
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=79
2011-06-06 09:53:27 +00:00
Sascha Peilicke
78ba2e746c Autobuild autoformatter for 72194
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=78
2011-05-31 12:37:13 +00:00
Sascha Peilicke
e0486281c3 Accepting request 72194 from Base:System
Minor nfs-utils update for factory

- sysconfig.nfs: now that 'nfs' is not enabled
  by default, set NFS_START_SERVICES=yes by default
  and document that 'chkconfig nfs on' is needed.

OBS-URL: https://build.opensuse.org/request/show/72194
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=77
2011-05-31 12:37:02 +00:00
Sascha Peilicke
237cab2498 Autobuild autoformatter for 68471
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=76
2011-04-27 08:02:17 +00:00
Sascha Peilicke
0e77e8001a Accepting request 68471 from Base:System
Accepted submit request 68471 from user coolo

OBS-URL: https://build.opensuse.org/request/show/68471
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=75
2011-04-27 08:02:00 +00:00
Sascha Peilicke
e71f80c91d Autobuild autoformatter for 64546
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=74
2011-03-21 09:27:12 +00:00
Sascha Peilicke
b1a128631b Accepting request 64546 from Base:System
Accepted submit request 64546 from user elvigia

OBS-URL: https://build.opensuse.org/request/show/64546
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=73
2011-03-21 09:26:58 +00:00
Ruediger Oertel
42fdfcaf5e Autobuild autoformatter for 61539
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=72
2011-02-18 11:53:26 +00:00
Ruediger Oertel
e042da25bc Accepting request 61539 from Base:System
Accepted submit request 61539 from user neilbrown

OBS-URL: https://build.opensuse.org/request/show/61539
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=71
2011-02-18 11:53:18 +00:00
Ruediger Oertel
a9e484403a Autobuild autoformatter for 59569
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=69
2011-02-02 00:47:25 +00:00
Ruediger Oertel
e90aa0d140 Accepting request 59569 from Base:System
Accepted submit request 59569 from user elvigia

OBS-URL: https://build.opensuse.org/request/show/59569
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=68
2011-02-02 00:47:16 +00:00
Lars Vogdt
706ad64ee8 Autobuild autoformatter for 59106
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=67
2011-01-25 12:24:00 +00:00
Lars Vogdt
0e1968e2af Accepting request 59106 from Base:System
Accepted submit request 59106 from user elvigia

OBS-URL: https://build.opensuse.org/request/show/59106
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=66
2011-01-25 12:23:48 +00:00
22637f4fb5 Autobuild autoformatter for 58259
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=65
2011-01-15 02:00:38 +00:00
15a973b7cb Accepting request 58259 from Base:System
Accepted submit request 58259 from user elvigia

OBS-URL: https://build.opensuse.org/request/show/58259
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=64
2011-01-15 02:00:26 +00:00
40b48947ba Autobuild autoformatter for 54975
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=63
2010-12-07 17:45:00 +00:00
84049bf6c8 Accepting request 54975 from Base:System
Accepted submit request 54975 from user coolo

OBS-URL: https://build.opensuse.org/request/show/54975
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=62
2010-12-07 17:44:48 +00:00
OBS User autobuild
e63169b858 Accepting request 50180 from Base:System
Copy from Base:System/nfs-utils based on submit request 50180 from user neilbrown

OBS-URL: https://build.opensuse.org/request/show/50180
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=61
2010-10-11 15:03:25 +00:00
OBS User autobuild
499603bfcc Accepting request 46400 from Base:System
Copy from Base:System/nfs-utils based on submit request 46400 from user coolo

OBS-URL: https://build.opensuse.org/request/show/46400
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=60
2010-08-27 20:49:53 +00:00
OBS User autobuild
90ef3f32ef Accepting request 43927 from Base:System
Copy from Base:System/nfs-utils based on submit request 43927 from user elvigia

OBS-URL: https://build.opensuse.org/request/show/43927
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=59
2010-08-01 15:28:34 +00:00
OBS User autobuild
627f2ee5fa Accepting request 39703 from Base:System
Copy from Base:System/nfs-utils based on submit request 39703 from user neilbrown

OBS-URL: https://build.opensuse.org/request/show/39703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=56
2010-05-13 22:42:32 +00:00
OBS User autobuild
bd748cc245 Accepting request 35966 from Base:System
Copy from Base:System/nfs-utils based on submit request 35966 from user oertel

OBS-URL: https://build.opensuse.org/request/show/35966
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=55
2010-03-31 17:28:52 +00:00
OBS User autobuild
461b5b7282 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=54 2010-03-18 15:11:31 +00:00
OBS User autobuild
0f96d2b308 Accepting request 34462 from Base:System
Copy from Base:System/nfs-utils based on submit request 34462 from user neilbrown

OBS-URL: https://build.opensuse.org/request/show/34462
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=53
2010-03-09 23:31:02 +00:00
OBS User autobuild
74466a48f3 Accepting request 25300 from Base:System
Copy from Base:System/nfs-utils based on submit request 25300 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/25300
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=52
2009-12-02 11:37:58 +00:00
8 changed files with 498 additions and 72 deletions

View File

@ -0,0 +1,99 @@
From 20c0797937e9ec43a78a2f5475d4296897f8c537 Mon Sep 17 00:00:00 2001
From: Olga Kornievskaia <kolga@netapp.com>
Date: Mon, 11 Dec 2023 08:46:35 -0500
Subject: [PATCH 1/6] gssd: revert commit a5f3b7ccb01c
In preparation for using rpc_gss_seccreate() function, revert commit
a5f3b7ccb01c "gssd: handle KRB5_AP_ERR_BAD_INTEGRITY for user
credentials"
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
utils/gssd/gssd_proc.c | 2 --
utils/gssd/krb5_util.c | 42 ------------------------------------------
utils/gssd/krb5_util.h | 1 -
3 files changed, 45 deletions(-)
diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
index a96647df..e5cc1d98 100644
--- a/utils/gssd/gssd_proc.c
+++ b/utils/gssd/gssd_proc.c
@@ -419,8 +419,6 @@ create_auth_rpc_client(struct clnt_info *clp,
if (cred == GSS_C_NO_CREDENTIAL)
retval = gssd_refresh_krb5_machine_credential(clp->servername,
"*", NULL, 1);
- else
- retval = gssd_k5_remove_bad_service_cred(clp->servername);
if (!retval) {
auth = authgss_create_default(rpc_clnt, tgtname,
&sec);
diff --git a/utils/gssd/krb5_util.c b/utils/gssd/krb5_util.c
index 6f66ef4f..f6ce1fec 100644
--- a/utils/gssd/krb5_util.c
+++ b/utils/gssd/krb5_util.c
@@ -1553,48 +1553,6 @@ gssd_acquire_user_cred(gss_cred_id_t *gss_cred)
return ret;
}
-/* Removed a service ticket for nfs/<name> from the ticket cache
- */
-int
-gssd_k5_remove_bad_service_cred(char *name)
-{
- krb5_creds in_creds, out_creds;
- krb5_error_code ret;
- krb5_context context;
- krb5_ccache cache;
- krb5_principal principal;
- int retflags = KRB5_TC_MATCH_SRV_NAMEONLY;
- char srvname[1024];
-
- ret = krb5_init_context(&context);
- if (ret)
- goto out_cred;
- ret = krb5_cc_default(context, &cache);
- if (ret)
- goto out_free_context;
- ret = krb5_cc_get_principal(context, cache, &principal);
- if (ret)
- goto out_close_cache;
- memset(&in_creds, 0, sizeof(in_creds));
- in_creds.client = principal;
- sprintf(srvname, "nfs/%s", name);
- ret = krb5_parse_name(context, srvname, &in_creds.server);
- if (ret)
- goto out_free_principal;
- ret = krb5_cc_retrieve_cred(context, cache, retflags, &in_creds, &out_creds);
- if (ret)
- goto out_free_principal;
- ret = krb5_cc_remove_cred(context, cache, 0, &out_creds);
-out_free_principal:
- krb5_free_principal(context, principal);
-out_close_cache:
- krb5_cc_close(context, cache);
-out_free_context:
- krb5_free_context(context);
-out_cred:
- return ret;
-}
-
#ifdef HAVE_SET_ALLOWABLE_ENCTYPES
/*
* this routine obtains a credentials handle via gss_acquire_cred()
diff --git a/utils/gssd/krb5_util.h b/utils/gssd/krb5_util.h
index 7ef87018..62c91a0e 100644
--- a/utils/gssd/krb5_util.h
+++ b/utils/gssd/krb5_util.h
@@ -22,7 +22,6 @@ char *gssd_k5_err_msg(krb5_context context, krb5_error_code code);
void gssd_k5_get_default_realm(char **def_realm);
int gssd_acquire_user_cred(gss_cred_id_t *gss_cred);
-int gssd_k5_remove_bad_service_cred(char *srvname);
#ifdef HAVE_SET_ALLOWABLE_ENCTYPES
extern int limit_to_legacy_enctypes;
--
2.46.0

View File

@ -0,0 +1,51 @@
From f05af7d9924b5e455f4e750c1e8985c560784fce Mon Sep 17 00:00:00 2001
From: Olga Kornievskaia <kolga@netapp.com>
Date: Mon, 11 Dec 2023 08:50:57 -0500
Subject: [PATCH 2/6] gssd: revert commit 513630d720bd
In preparation for using rpc_gss_seccreate(), revert commit 513630d720bd
"gssd: handle KRB5_AP_ERR_BAD_INTEGRITY for machine credentials"
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
utils/gssd/gssd_proc.c | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
index e5cc1d98..4fb6b72d 100644
--- a/utils/gssd/gssd_proc.c
+++ b/utils/gssd/gssd_proc.c
@@ -412,27 +412,13 @@ create_auth_rpc_client(struct clnt_info *clp,
tid, tgtname);
auth = authgss_create_default(rpc_clnt, tgtname, &sec);
if (!auth) {
- if (sec.minor_status == KRB5KRB_AP_ERR_BAD_INTEGRITY) {
- printerr(2, "WARNING: server=%s failed context "
- "creation with KRB5_AP_ERR_BAD_INTEGRITY\n",
- clp->servername);
- if (cred == GSS_C_NO_CREDENTIAL)
- retval = gssd_refresh_krb5_machine_credential(clp->servername,
- "*", NULL, 1);
- if (!retval) {
- auth = authgss_create_default(rpc_clnt, tgtname,
- &sec);
- if (auth)
- goto success;
- }
- }
/* Our caller should print appropriate message */
printerr(2, "WARNING: Failed to create krb5 context for "
"user with uid %d for server %s\n",
uid, tgtname);
goto out_fail;
}
-success:
+
/* Success !!! */
rpc_clnt->cl_auth = auth;
*clnt_return = rpc_clnt;
--
2.46.0

View File

@ -0,0 +1,60 @@
From 3abf6b5223af0ccf07d217d71978ee7987acce88 Mon Sep 17 00:00:00 2001
From: Olga Kornievskaia <kolga@netapp.com>
Date: Mon, 11 Dec 2023 08:52:47 -0500
Subject: [PATCH 3/6] gssd: switch to using rpc_gss_seccreate()
If available from the libtirpc library, switch to using
rpc_gss_seccreate() instead of authgss_create_default() which does not
expose gss error codes.
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
utils/gssd/gssd_proc.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
index 4fb6b72d..99761157 100644
--- a/utils/gssd/gssd_proc.c
+++ b/utils/gssd/gssd_proc.c
@@ -70,6 +70,9 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <syscall.h>
+#ifdef HAVE_TIRPC_GSS_SECCREATE
+#include <rpc/rpcsec_gss.h>
+#endif
#include "gssd.h"
#include "err_util.h"
@@ -330,6 +333,11 @@ create_auth_rpc_client(struct clnt_info *clp,
struct timeval timeout;
struct sockaddr *addr = (struct sockaddr *) &clp->addr;
socklen_t salen;
+#ifdef HAVE_TIRPC_GSS_SECCREATE
+ rpc_gss_options_req_t req;
+ rpc_gss_options_ret_t ret;
+ char mechanism[] = "kerberos_v5";
+#endif
pthread_t tid = pthread_self();
sec.qop = GSS_C_QOP_DEFAULT;
@@ -410,7 +418,14 @@ create_auth_rpc_client(struct clnt_info *clp,
printerr(3, "create_auth_rpc_client(0x%lx): creating context with server %s\n",
tid, tgtname);
+#ifdef HAVE_TIRPC_GSS_SECCREATE
+ memset(&req, 0, sizeof(req));
+ req.my_cred = sec.cred;
+ auth = rpc_gss_seccreate(rpc_clnt, tgtname, mechanism,
+ rpcsec_gss_svc_none, NULL, &req, &ret);
+#else
auth = authgss_create_default(rpc_clnt, tgtname, &sec);
+#endif
if (!auth) {
/* Our caller should print appropriate message */
printerr(2, "WARNING: Failed to create krb5 context for "
--
2.46.0

View File

@ -0,0 +1,62 @@
From 2bfb59c6f50eb86c21f8e0c33bbf32ec53480fb8 Mon Sep 17 00:00:00 2001
From: Olga Kornievskaia <kolga@netapp.com>
Date: Mon, 11 Dec 2023 08:55:35 -0500
Subject: [PATCH 4/6] gssd: handle KRB5_AP_ERR_BAD_INTEGRITY for machine
credentials
During context establishment, when the client received
KRB5_AP_ERR_BAD_INTEGRITY error, it might be due to the server
updating its key material. To handle such error, get a new
service ticket and re-try the AP_REQ.
This functionality relies on the new API in libtirpc that
exposes the gss errors.
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
utils/gssd/gssd_proc.c | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
index 99761157..29600a3f 100644
--- a/utils/gssd/gssd_proc.c
+++ b/utils/gssd/gssd_proc.c
@@ -427,13 +427,32 @@ create_auth_rpc_client(struct clnt_info *clp,
auth = authgss_create_default(rpc_clnt, tgtname, &sec);
#endif
if (!auth) {
+#ifdef HAVE_TIRPC_GSS_SECCREATE
+ if (ret.minor_status == KRB5KRB_AP_ERR_BAD_INTEGRITY) {
+ printerr(2, "WARNING: server=%s failed context "
+ "creation with KRB5_AP_ERR_BAD_INTEGRITY\n",
+ clp->servername);
+ if (cred == GSS_C_NO_CREDENTIAL)
+ retval = gssd_refresh_krb5_machine_credential(clp->servername,
+ "*", NULL, 1);
+ if (!retval) {
+ auth = rpc_gss_seccreate(rpc_clnt, tgtname,
+ mechanism, rpcsec_gss_svc_none,
+ NULL, &req, &ret);
+ if (auth)
+ goto success;
+ }
+ }
+#endif
/* Our caller should print appropriate message */
printerr(2, "WARNING: Failed to create krb5 context for "
"user with uid %d for server %s\n",
uid, tgtname);
goto out_fail;
}
-
+#ifdef HAVE_TIRPC_GSS_SECCREATE
+success:
+#endif
/* Success !!! */
rpc_clnt->cl_auth = auth;
*clnt_return = rpc_clnt;
--
2.46.0

View File

@ -0,0 +1,101 @@
From 15cd566633b1546f0808d0694ede094b4c99752d Mon Sep 17 00:00:00 2001
From: Olga Kornievskaia <kolga@netapp.com>
Date: Mon, 11 Dec 2023 08:57:28 -0500
Subject: [PATCH 5/6] gssd: handle KRB5_AP_ERR_BAD_INTEGRITY for user
credentials
Unlike the machine credential case, we can't throw away the ticket
cache and use the keytab to renew the credentials. Instead, we
need to remove the service ticket for the server that returned
KRB5_AP_ERR_BAD_INTEGRITY and try again.
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
utils/gssd/gssd_proc.c | 2 ++
utils/gssd/krb5_util.c | 42 ++++++++++++++++++++++++++++++++++++++++++
utils/gssd/krb5_util.h | 1 +
3 files changed, 45 insertions(+)
diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
index 29600a3f..7629de0b 100644
--- a/utils/gssd/gssd_proc.c
+++ b/utils/gssd/gssd_proc.c
@@ -435,6 +435,8 @@ create_auth_rpc_client(struct clnt_info *clp,
if (cred == GSS_C_NO_CREDENTIAL)
retval = gssd_refresh_krb5_machine_credential(clp->servername,
"*", NULL, 1);
+ else
+ retval = gssd_k5_remove_bad_service_cred(clp->servername);
if (!retval) {
auth = rpc_gss_seccreate(rpc_clnt, tgtname,
mechanism, rpcsec_gss_svc_none,
diff --git a/utils/gssd/krb5_util.c b/utils/gssd/krb5_util.c
index f6ce1fec..6f66ef4f 100644
--- a/utils/gssd/krb5_util.c
+++ b/utils/gssd/krb5_util.c
@@ -1553,6 +1553,48 @@ gssd_acquire_user_cred(gss_cred_id_t *gss_cred)
return ret;
}
+/* Removed a service ticket for nfs/<name> from the ticket cache
+ */
+int
+gssd_k5_remove_bad_service_cred(char *name)
+{
+ krb5_creds in_creds, out_creds;
+ krb5_error_code ret;
+ krb5_context context;
+ krb5_ccache cache;
+ krb5_principal principal;
+ int retflags = KRB5_TC_MATCH_SRV_NAMEONLY;
+ char srvname[1024];
+
+ ret = krb5_init_context(&context);
+ if (ret)
+ goto out_cred;
+ ret = krb5_cc_default(context, &cache);
+ if (ret)
+ goto out_free_context;
+ ret = krb5_cc_get_principal(context, cache, &principal);
+ if (ret)
+ goto out_close_cache;
+ memset(&in_creds, 0, sizeof(in_creds));
+ in_creds.client = principal;
+ sprintf(srvname, "nfs/%s", name);
+ ret = krb5_parse_name(context, srvname, &in_creds.server);
+ if (ret)
+ goto out_free_principal;
+ ret = krb5_cc_retrieve_cred(context, cache, retflags, &in_creds, &out_creds);
+ if (ret)
+ goto out_free_principal;
+ ret = krb5_cc_remove_cred(context, cache, 0, &out_creds);
+out_free_principal:
+ krb5_free_principal(context, principal);
+out_close_cache:
+ krb5_cc_close(context, cache);
+out_free_context:
+ krb5_free_context(context);
+out_cred:
+ return ret;
+}
+
#ifdef HAVE_SET_ALLOWABLE_ENCTYPES
/*
* this routine obtains a credentials handle via gss_acquire_cred()
diff --git a/utils/gssd/krb5_util.h b/utils/gssd/krb5_util.h
index 62c91a0e..7ef87018 100644
--- a/utils/gssd/krb5_util.h
+++ b/utils/gssd/krb5_util.h
@@ -22,6 +22,7 @@ char *gssd_k5_err_msg(krb5_context context, krb5_error_code code);
void gssd_k5_get_default_realm(char **def_realm);
int gssd_acquire_user_cred(gss_cred_id_t *gss_cred);
+int gssd_k5_remove_bad_service_cred(char *srvname);
#ifdef HAVE_SET_ALLOWABLE_ENCTYPES
extern int limit_to_legacy_enctypes;
--
2.46.0

View File

@ -0,0 +1,35 @@
From 49567e7d03a5605c590be2135a24d4de8345fa3c Mon Sep 17 00:00:00 2001
From: Olga Kornievskaia <kolga@netapp.com>
Date: Mon, 11 Dec 2023 08:59:43 -0500
Subject: [PATCH 6/6] configure: check for rpc_gss_seccreate
If we have rpc_gss_sccreate in tirpc library define
HAVE_TIRPC_GSS_SECCREATE, which would allow us to handle bad_integrity
errors.
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
aclocal/libtirpc.m4 | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/aclocal/libtirpc.m4 b/aclocal/libtirpc.m4
index bddae022..ef48a2ae 100644
--- a/aclocal/libtirpc.m4
+++ b/aclocal/libtirpc.m4
@@ -26,6 +26,11 @@ AC_DEFUN([AC_LIBTIRPC], [
[Define to 1 if your tirpc library provides libtirpc_set_debug])],,
[${LIBS}])])
+ AS_IF([test -n "${LIBTIRPC}"],
+ [AC_CHECK_LIB([tirpc], [rpc_gss_seccreate],
+ [AC_DEFINE([HAVE_TIRPC_GSS_SECCREATE], [1],
+ [Define to 1 if your tirpc library provides rpc_gss_seccreate])],,
+ [${LIBS}])])
AC_SUBST([AM_CPPFLAGS])
AC_SUBST(LIBTIRPC)
--
2.46.0

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Aug 20 20:21:14 UTC 2024 - Dirk Müller <dmueller@suse.com>
- add 0001-gssd-revert-commit-a5f3b7ccb01c.patch,
0002-gssd-revert-commit-513630d720bd.patch,
0003-gssd-switch-to-using-rpc_gss_seccreate.patch,
0004-gssd-handle-KRB5_AP_ERR_BAD_INTEGRITY-for-machine-cr.patch,
0005-gssd-handle-KRB5_AP_ERR_BAD_INTEGRITY-for-user-crede.patch,
0006-configure-check-for-rpc_gss_seccreate.patch: fixes for
libtirpc 1.3.5
-------------------------------------------------------------------
Mon Apr 22 02:56:13 UTC 2024 - Neil Brown <nfbrown@suse.com>

View File

@ -46,6 +46,13 @@ Patch1: 0001-exportfs-remove-warning-if-neither-subtree_check-or-.patch
Patch2: 0002-conffile-don-t-report-error-from-conf_init_file.patch
Patch3: 0003-conffile-allow-usr-etc-to-provide-any-config-files-e.patch
Patch4: 0004-fsidd-call-anonymous-sockets-by-their-name-only-don-.patch
# PATCH-FIX-UPSTREAM: fix build against libtirpc 1.3.5
Patch5: 0001-gssd-revert-commit-a5f3b7ccb01c.patch
Patch6: 0002-gssd-revert-commit-513630d720bd.patch
Patch7: 0003-gssd-switch-to-using-rpc_gss_seccreate.patch
Patch8: 0004-gssd-handle-KRB5_AP_ERR_BAD_INTEGRITY-for-machine-cr.patch
Patch9: 0005-gssd-handle-KRB5_AP_ERR_BAD_INTEGRITY-for-user-crede.patch
Patch10: 0006-configure-check-for-rpc_gss_seccreate.patch
BuildRequires: e2fsprogs-devel
BuildRequires: gcc-c++
BuildRequires: libtool