Merge ~ahasenack/ubuntu/+source/nfs-utils:kinetic-nfsutils-merge into ubuntu/+source/nfs-utils:debian/sid

Proposed by Andreas Hasenack
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merge reported by: Andreas Hasenack
Merged at revision: 8f44dbe5f2f7977501808232f715af33c4bacc44
Proposed branch: ~ahasenack/ubuntu/+source/nfs-utils:kinetic-nfsutils-merge
Merge into: ubuntu/+source/nfs-utils:debian/sid
Diff against target: 2013 lines (+1660/-8)
22 files modified
debian/README.Ubuntu (+30/-0)
debian/changelog (+1229/-0)
debian/control (+17/-6)
debian/libnfsidmap-regex.install (+1/-0)
debian/libnfsidmap1.docs (+1/-0)
debian/libnfsidmap1.install (+3/-1)
debian/nfs-common.dirs (+1/-0)
debian/nfs-common.docs (+1/-0)
debian/nfs-common.postrm (+1/-0)
debian/not-installed (+3/-0)
debian/patches/nfs-conf-manpage-missing-svcgssd-options.patch (+19/-0)
debian/patches/series (+5/-0)
debian/patches/svcgssd-display-principal-if-set.patch (+37/-0)
debian/patches/svcgssd-document-missing-options.patch (+44/-0)
debian/patches/svcgssd-fix-use-after-free.patch (+45/-0)
debian/patches/ubuntu-idmapd-manpage-update-regex-other-package.patch (+12/-0)
debian/rules (+7/-1)
debian/source.apport (+32/-0)
debian/tests/control (+11/-0)
debian/tests/kerberos-mount (+38/-0)
debian/tests/util (+89/-0)
debian/tests/v3-mount (+34/-0)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Christian Ehrhardt  (community) Approve
Canonical Server Reporter Pending
Review via email: mp+425667@code.launchpad.net

Description of the change

Merge from Debian.

PPA: https://launchpad.net/~ahasenack/+archive/ubuntu/nfs-utils-merge/

I had to make changes to our delta, and I thought it best to first apply logical, and then make the changes and list them as "added changes", but in the next upload/merge they can be squashed.

Of note is that now we have to build the regex module from the nfs-utils source, since src:libnfsidmap-regex is gone from the archive. This is an unavoidable delta until the src:libnfsidmap-regex MIR[1] is started and done. This will be a NEW package and will go straight to Universe.

I'm also closing bug #1977745, which is committed upstream, so that bit of delta will disappear in the next upstream release.

I looked into bug #1971935, which at first seemed to have a clear and obvious fix, but when getting into the details I couldn't reproduce it nor understand why it was happening, and I'm wary of making that change without first understanding why these two users hit the problem.

I also dropped our d/NEWS file, because debian now has per-package news files of their own, up-to-date wrt the changes in nfs 2.6.x. Instead I moved some of the content to a d/README.Ubuntu file which I think is more appropriate long term. This can also be squashed in the next upload, as d/README.Ubuntu is already a delta we have. I could merge our now-gone NEWS file with Debian's, but it would look odd to say more or less the same thing in different versions of the package in that NEWS file.

I sent these delta pieces to debian:
- small packaging fixes: https://salsa.debian.org/kernel-team/nfs-utils/-/merge_requests/16
- dep8: https://salsa.debian.org/kernel-team/nfs-utils/-/merge_requests/15

1. https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1960824

To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Download full text (3.4 KiB)

- Logical matches what is in kinetic
- $ git range-diff pkg/import/1%2.6.1-1..ahasenack/logical/1%2.6.1-1ubuntu1 pkg/import/1%2.6.1-2..ahasenack/kinetic-nfsutils-merge

 2: 4083b817 < -: -------- - d/NEWS: explain some of the major changes in 2.6.x
- we have dropped d/NEWS , but upgrades need to go through Jammy and there it is.
Also this is now present per pkg

 3: a45a1920 ! 2: b9332ea6 - Don't install the regex module, as it's built by src:libnfsidmap-regex which is in Universe (MIR: #1960824) + d/control: don't conflict/break/e
- regex only context noise

 4: 92113f8f ! 3: da56db7d - Update README files: + d/README.Ubuntu: explains some of the packaging decisions + d/README.Debian.nfsv4: removed as the content is out of date
- Readme.Ubuntu lost some content to be added later as moved from NEWS - seems ok

 5: adc7845e < -: -------- - d/nfsconvert.py: add short "u" option for mountd's no-udp
present in Debian

 8: 3bdc8b3d < -: -------- - d/nfs-*.bug-script: update to also include /etc/nfs.conf and /etc/nfs.conf.d/*.conf

That far it is ok, the last section are all new changes which I'll also review one by one ...

565a151b * Dropped: - d/nfsconvert.py: add short "u" option for mountd's no-udp [Included in 1:2.6.1-2]
d22206d0 - d/NEWS: explain some of the major changes in 2.6.x [Obsoleted by Debian's update to the per-package NEWS files]
2b54f858 - d/nfs-*.bug-script: update to also include /etc/nfs.conf and /etc/nfs.conf.d/*.conf [Included in 1:2.6.1-2]

^^ ok, just for changelog generation

9b5dd4e4 * Added changes: - New binary package libnfsidmap-regex (LP: #1974067): + d/control: new package + d/libnfsidmap-regex.install: install the plugin file + d/not-installed: remove the plugin from the not-installed list + d/p/remove-regex-from-docs.patch: deleted + d/p/ubuntu-idmapd-manpage-update-regex-other-package.patch: note that the regex plugin is in another package

Just to ensure I got this right, we are adding regex, not moving it.
I checked regex.so wasn't present, so no need for breaks/replaces due to reorg.
Well it wasn't present from this source. But the binary pkg is removed in kinetic and this upload should thereby not conflict. It should upgrade the former version just fine.

78f3ad56 - rpc.svcgssd fixes and improvements (LP: #1977745): + d/p/svcgssd-fix-use-after-free.patch: fix use-after-free which was preventing svcgssd options set in /etc/nfs.conf from being used

ok

30ff1d49 + d/p/svcgssd-display-principal-if-set.patch: improve logging, showing the expected principal name if it was set in the config
2bb1bc06 + d/p/svcgssd-document-missing-options.patch: add missing options to the svcgssd manpage
1591ebd6 + d/p/nfs-conf-manpage-missing-svcgssd-options.patch: also document the missing svcgssd options to the nfs.conf(5) manpage

all good changes, upstream refs ok

a6477222 - d/README.Ubuntu: updated with the content of the previous d/NEWS file

Ok, this indeed carries the info formerly present in other places.

a14d8...

Read more...

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Review is ok, but testing is not entirely clean.

Updating a Kinetic system to your PPA gave me:

Setting up nfs-kernel-server (1:2.6.1-2ubuntu1~ppa5) ...
nfs-mountd.service is a disabled or a static unit not running, not starting it.
nfsdcld.service is a disabled or a static unit not running, not starting it.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 145.
A dependency job for nfs-server.service failed. See 'journalctl -xe' for details.
invoke-rc.d: initscript nfs-kernel-server, action "restart" failed.
○ nfs-server.service - NFS server and services
     Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
     Active: inactive (dead)

Jun 28 12:42:40 k systemd[1]: Dependency failed for NFS server and services.
Jun 28 12:42:40 k systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Jun 28 12:42:40 k systemd[1]: Dependency failed for NFS server and services.
Jun 28 12:42:40 k systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Jun 28 12:53:09 k systemd[1]: Dependency failed for NFS server and services.
Jun 28 12:53:09 k systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Jun 28 12:53:09 k systemd[1]: Dependency failed for NFS server and services.
Jun 28 12:53:09 k systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Failed to restart nfs-kernel-server, ignoring.

That didn't happen in all environments.
And it is rather obvious.
It is due to nfsd failing

root@k:~# systemctl status proc-fs-nfsd.mount
× proc-fs-nfsd.mount - NFSD configuration filesystem
     Loaded: loaded (/lib/systemd/system/proc-fs-nfsd.mount; static)
     Active: failed (Result: exit-code) since Tue 2022-06-28 12:53:09 UTC; 4min 6s ago
      Where: /proc/fs/nfsd
       What: nfsd

Jun 28 12:53:09 k mount[133913]: mount: /proc/fs/nfsd: permission denied.

As it is in a LXD container

I wonder if we should add a Condition or some other softening hint to make this less complaining.
OTOH - this will almost never work in a container unless you seriously modify its isolation, so since it is not fatal it might be right to complain a bit on install/upgrade.

Up to you to decide

Review complete LGTM +1

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

> Jun 28 12:53:09 k mount[133913]: mount: /proc/fs/nfsd: permission denied.

NFS server never worked in a (lxd or otherwise) container out of the box.

If NFS were a single service, we could add a condition to it. But I'm unsure how to do it with so many intertwined services.

d530207... by Andreas Hasenack

    - d/rules: re-add hardening option lost from the src:libnfsidmap to
      src:nfs-utils transition (LP: #1980095)

d68e08c... by Andreas Hasenack

merge-changelogs

194a21a... by Andreas Hasenack

reconstruct-changelog

8f44dbe... by Andreas Hasenack

update-maintainer

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I found out we lost the hardening flags in the libnfsidmap*->nfs-utils transition (so did Debian), and filed a bug and reintroduced the flags.

DEP8 re-ran locally:
autopkgtest [14:20:59]: @@@@@@@@@@@@@@@@@@@@ summary
local-server-client PASS
kerberos-mount PASS
v3-mount PASS

In the meantime the ppa dep8 run also finished: https://autopkgtest.ubuntu.com/results/autopkgtest-kinetic-ahasenack-nfs-utils-merge/kinetic/amd64/n/nfs-utils/20220628_171746_3c10e@/log.gz

Revision history for this message
Andreas Hasenack (ahasenack) wrote :
Download full text (3.9 KiB)

Lintian this time only complains about libnfsidmap-regex being built without fortify:
I: libnfsidmap-regex: hardening-no-fortify-functions [usr/lib/x86_64-linux-gnu/libnfsidmap/regex.so]

But the build log has -D_FORTIFY_SOURCE=2:
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../support/include -I/usr/include/tirpc -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -pipe -Wall -Wextra -Werror=strict-prototypes -Werror=missing-prototypes -Werror=missing-declarations -Werror=format=2 -Werror=undef -Werror=missing-include-dirs -Werror=strict-aliasing=2 -Werror=init-self -Werror=implicit-function-declaration -Werror=return-type -Werror=switch -Werror=overflow -Werror=parentheses -Werror=aggregate-return -Werror=unused-result -fno-strict-aliasing -Werror=format-overflow=2 -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Wno-cast-function-type -g -O2 -ffile-prefix-map=/home/ubuntu/git/packages/nfs-utils/nfs-utils=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -c -o regex.lo regex.c

then
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../support/include -I/usr/include/tirpc -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -pipe -Wall -Wextra -Werror=strict-prototypes -Werror=missing-prototypes -Werror=missing-declarations -Werror=format=2 -Werror=undef -Werror=missing-include-dirs -Werror=strict-aliasing=2 -Werror=init-self -Werror=implicit-function-declaration -Werror=return-type -Werror=switch -Werror=overflow -Werror=parentheses -Werror=aggregate-return -Werror=unused-result -fno-strict-aliasing -Werror=format-overflow=2 -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Wno-cast-function-type -g -O2 -ffile-prefix-map=/home/ubuntu/git/packages/nfs-utils/nfs-utils=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -c regex.c -fPIC -DPIC -o .libs/regex.o

and
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../support/include -I/usr/include/tirpc -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -pipe -Wall -Wextra -Werror=strict-prototypes -Werror=missing-prototypes -Werror=missing-declarations -Werror=format=2 -Werror=undef -Werror=missing-include-dirs -Werror=strict-aliasing=2 -Werror=init-self -Werror=implicit-function-declaration -Werror=return-type -Werror=switch -Werror=overflow -Werror=parentheses -Werror=aggregate-return -Werror=unused-result -fno-strict-aliasing -Werror=format-overflow=2 -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Wno-cast-function-type -g -O2 -ffile-prefix-map=/home/ubuntu/git/packages/nfs-utils/nfs-utils=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -c regex.c -o regex.o >/dev/null 2>&1

But not in the linker state (expected I think):/bin/bash ../../libtool --tag=CC --mode=link gcc -pipe -Wall -Wextra -Werror=strict-prototypes -Werror=missing-prototypes -Werror=missing-declarations -Werror=format=2 -Werror=undef -Werror=missing-include-d...

Read more...

Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: ahasenack, paelzer
Uploaders: ahasenack, paelzer
MP auto-approved

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Salsa PR for reintroducing the hardening flags: https://salsa.debian.org/kernel-team/nfs-utils/-/merge_requests/17

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

New:
d530207 - d/rules: re-add hardening option lost from the src:libnfsidmap

Change ... LGTM
Check build ... there is no cc call left without hardning -> LGTM

+1 (for the added delta)

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks, uploaded
Uploading nfs-utils_2.6.1-2ubuntu1.dsc
Uploading nfs-utils_2.6.1-2ubuntu1.debian.tar.xz
Uploading nfs-utils_2.6.1-2ubuntu1_source.buildinfo
Uploading nfs-utils_2.6.1-2ubuntu1_source.changes

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This built and migrated.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/README.Ubuntu b/debian/README.Ubuntu
0new file mode 1006440new file mode 100644
index 0000000..bf80042
--- /dev/null
+++ b/debian/README.Ubuntu
@@ -0,0 +1,30 @@
1# New configuration file
2
3nfs-common and nfs-kernel-server use a common configuration file /etc/nfs.conf.
4They also support a /etc/nfs.conf.d/*.conf structure.
5
6If there are local modifications to either /etc/default/nfs-common or
7/etc/default/nfs-kernel-server as installed by previous versions of the
8corresponding Debian packages, nfs-common will attempt a migration to the new
9configuration file. This migration is done by calling the
10/usr/share/nfs-common/nfsconvert.py script in postinst.
11
12Upon success, the script will produce /etc/nfs.conf.d/local.conf with the local
13customizations specified in those older config files, while /etc/nfs.conf will
14remain with the default settings.
15
16If the migration fails for some reason, the package installation will fail and
17manual intervention will be required. This will probably involve temporarily
18removing the offending configuration option that was not handled by the
19migration script and configuring the package again. Please consult nfs.conf(5)
20and each daemon's manpage to determine how to translate the command line
21options previously defined in /etc/default/nfs-* to the new configuration file
22format.
23
24# Services
25
26All NFS related services are enabled by default. This means that depending on
27the NFS version that you intend to use, some services might be superfluous.
28For example, if you never intend to serve NFSv3, then you can safely disable
29the rpc-statd.service unit. Note that some NFSv4 service units will start only
30if Kerberos is setup.
diff --git a/debian/changelog b/debian/changelog
index 907e6da..9abfe3e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,63 @@
1nfs-utils (1:2.6.1-2ubuntu1) kinetic; urgency=medium
2
3 * Merge with Debian unstable (LP: #1974233). Remaining changes:
4 - d/control: don't provide libnfsidmap2 in libnfsidmap1. This
5 package contains not only plugins, but an actual shared library,
6 with a different soname.
7 - Don't install the regex module, as it's built by
8 src:libnfsidmap-regex which is in Universe (MIR: #1960824)
9 + d/control: don't conflict/break/etc with libnfsidmap-regex
10 + d/libnfsidmap1.install: don't install regex.so
11 + d/not-installed: mark files we knowingly don't include in the
12 packaging
13 + d/p/remove-regex-from-docs.patch: remove the regex section from
14 the idmapd.conf(5) manpage, as we are not building that plugin in
15 this package
16 - Update README file:
17 + d/README.Ubuntu: new /etc/nfs.conf config structure
18 + d/libnfsidmap1.docs, d/nfs-common.docs: install README.Ubuntu
19 - d/nfs-common.postrm: also purge /etc/nfs.conf.d/local.conf
20 - d/nfs-common.dirs: we also own /etc/nfs.conf.d
21 - New apport hook (LP #1961058):
22 + d/source.apport: apport hook for nfs-utils
23 + d/control: build-depend dh-apport
24 + d/rules: build with apport, and install the hook in the
25 nfs-common package which is installed on both client and servers
26 - Add more DEP8 tests (LP #1960828):
27 + d/t/{control,kerberos-mount,util}: test NFSv4 krb5p mounts
28 + d/t/{control, v3-moun}t: specific NFSv3 mount test
29 * Dropped:
30 - d/nfsconvert.py: add short "u" option for mountd's no-udp
31 [Included in 1:2.6.1-2]
32 - d/NEWS: explain some of the major changes in 2.6.x
33 [Obsoleted by Debian's update to the per-package NEWS files]
34 - d/nfs-*.bug-script: update to also include /etc/nfs.conf and
35 /etc/nfs.conf.d/*.conf
36 [Included in 1:2.6.1-2]
37 * Added changes:
38 - New binary package libnfsidmap-regex (LP: #1974067):
39 + d/control: new package
40 + d/libnfsidmap-regex.install: install the plugin file
41 + d/not-installed: remove the plugin from the not-installed list
42 + d/p/remove-regex-from-docs.patch: deleted
43 + d/p/ubuntu-idmapd-manpage-update-regex-other-package.patch:
44 note that the regex plugin is in another package
45 - rpc.svcgssd fixes and improvements (LP: #1977745):
46 + d/p/svcgssd-fix-use-after-free.patch: fix use-after-free which was
47 preventing svcgssd options set in /etc/nfs.conf from being used
48 + d/p/svcgssd-display-principal-if-set.patch: improve logging,
49 showing the expected principal name if it was set in the config
50 + d/p/svcgssd-document-missing-options.patch: add missing options to
51 the svcgssd manpage
52 + d/p/nfs-conf-manpage-missing-svcgssd-options.patch: also
53 document the missing svcgssd options to the nfs.conf(5) manpage
54 - d/README.Ubuntu: updated with the content of the previous d/NEWS
55 file
56 - d/rules: re-add hardening option lost from the src:libnfsidmap to
57 src:nfs-utils transition (LP: #1980095)
58
59 -- Andreas Hasenack <andreas@canonical.com> Tue, 28 Jun 2022 10:59:36 -0300
60
1nfs-utils (1:2.6.1-2) unstable; urgency=medium61nfs-utils (1:2.6.1-2) unstable; urgency=medium
262
3 [ Andreas Hasenack ]63 [ Andreas Hasenack ]
@@ -24,6 +84,51 @@ nfs-utils (1:2.6.1-2) unstable; urgency=medium
2484
25 -- Salvatore Bonaccorso <carnil@debian.org> Tue, 12 Apr 2022 12:20:44 +020085 -- Salvatore Bonaccorso <carnil@debian.org> Tue, 12 Apr 2022 12:20:44 +0200
2686
87nfs-utils (1:2.6.1-1ubuntu1) jammy; urgency=medium
88
89 * Merge with Debian unstable (LP: #1960829). Remaining changes:
90 - d/control: don't provide libnfsidmap2 in libnfsidmap1. This
91 package contains not only plugins, but an actual shared library,
92 with a different soname.
93 - d/NEWS: explain some of the major changes in 2.6.x
94 - Don't install the regex module, as it's built by
95 src:libnfsidmap-regex which is in Universe (MIR: #1960824)
96 + d/control: don't conflict/break/etc with libnfsidmap-regex
97 + d/libnfsidmap1.install: don't install regex.so
98 + d/not-installed: mark files we knowingly don't include in the
99 packaging
100 + d/p/remove-regex-from-docs.patch: remove the regex section from
101 the idmapd.conf(5) manpage, as we are not building that plugin in
102 this package
103 - Update README files:
104 + d/README.Ubuntu: explains some of the packaging decisions
105 + d/README.Debian.nfsv4: removed as the content is out of date
106 + d/nfs-common.docs: install README.Ubuntu instead of
107 README.Debian.nfsv4
108 + d/libnfsidmap1.docs: install README.Ubuntu
109 * Dropped:
110 - d/nfs-common.postinst: always start nfs-utils.service, so the restart in
111 the #DEBHELPER# section can do its job if needed
112 [Fixed with the upstream re-arrangement of systemd units]
113 * Added:
114 - d/nfsconvert.py: add short "u" option for mountd's no-udp
115 - d/NEWS: update
116 - d/nfs-common.postrm: also purge /etc/nfs.conf.d/local.conf
117 - d/nfs-common.dirs: we also own /etc/nfs.conf.d
118 - d/README.Ubuntu: update
119 - d/nfs-*.bug-script: update to also include /etc/nfs.conf and
120 /etc/nfs.conf.d/*.conf
121 - New apport hook (LP: #1961058):
122 + d/source.apport: apport hook for nfs-utils
123 + d/control: build-depend dh-apport
124 + d/rules: build with apport, and install the hook in the
125 nfs-common package which is installed on both client and servers
126 - Add more DEP8 tests (LP: #1960828):
127 + d/t/{control,kerberos-mount,util}: test NFSv4 krb5p mounts
128 + d/t/{control, v3-moun}t: specific NFSv3 mount test
129
130 -- Andreas Hasenack <andreas@canonical.com> Fri, 04 Mar 2022 17:44:10 -0300
131
27nfs-utils (1:2.6.1-1) unstable; urgency=medium132nfs-utils (1:2.6.1-1) unstable; urgency=medium
28133
29 [ Ben Hutchings ]134 [ Ben Hutchings ]
@@ -46,6 +151,65 @@ nfs-utils (1:2.6.1-1) unstable; urgency=medium
46151
47 -- Ben Hutchings <benh@debian.org> Thu, 24 Feb 2022 14:54:49 +0100152 -- Ben Hutchings <benh@debian.org> Thu, 24 Feb 2022 14:54:49 +0100
48153
154nfs-utils (1:2.6.1-1~exp1ubuntu1) jammy; urgency=medium
155
156 * Merge with Debian experimental (LP: #1878601, #1812280). Remaining
157 changes:
158 - d/nfs-common.postinst: always start nfs-utils.service, so the restart in
159 the #DEBHELPER# section can do its job if needed
160 * Dropped:
161 - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
162 [Ubuntu has it, but not in main]
163 - debian/nfs-common.default: remove NEED_STATD and related comment.
164 [/etc/default/nfs-* files are no longer used]
165 - debian/nfs-common.default: always start idmapd automatically; drop the
166 configuration option.
167 [/etc/default/nfs-* files are no longer used]
168 - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
169 argument of the serialize_krb5_ctx() function.
170 [Was only needed when libgssglue-dev was used for build, which it
171 isn't since nfs-utils 1:1.2.8-7]
172 - Fixing nfs-mountd dependency on rpcbind (race condition) by adding
173 "rpcbind.socket" to "nfs-mountd.service" as a dependency to avoid race
174 conditions:
175 - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
176 [Fixed upstream]
177 - truncate_gid*.patch: Backports from upstream to prevent truncating UIDs
178 and GIDs over 65536 on certain architectures
179 [Fixed upstream]
180 - d/p/fix-start-ordering-1.patch, d/p/fix-start-ordering-2.patch, d/p/fix-
181 start-ordering-3.patch, d/nfs-kernel-server.install: Fix systemd service
182 start ordering
183 [Fixed upstream. Patch 3 we don't need anymore because now the pkg
184 is built with --with-systemd]
185 - Depend on network-online.target when starting services.
186 - d/p/lp1918141-use-network-online-target-01.patch: Declare a
187 Wants=network-online.target on all NFS server services.
188 - d/p/lp1918141-use-network-online-target-02.patch: Declare a
189 After=network-online.target on all NFS server services. Thanks to
190 Niklas Edmundsson for helping with the reproducer.
191 [Fixed upstream]
192 * Added:
193 - d/control: don't provide libnfsidmap2 in libnfsidmap1
194 - d/NEWS: explain some of the major changes in 2.6.x
195 - Don't install the regex module, as it's built by
196 src:libnfsidmap-regex which is in Universe (MIR: #1960824)
197 + d/control: don't conflict/break/etc with libnfsidmap-regex
198 + d/libnfsidmap1.install: don't install regex.so
199 + d/not-installed: mark files we knowingly don't include in the
200 packaging
201 + d/p/remove-regex-from-docs.patch: remove the regex section from
202 the idmapd.conf(5) manpage, as we are not building that plugin in
203 this package
204 - Update README files:
205 + d/README.Ubuntu: explains some of the packaging decisions
206 + d/README.Debian.nfsv4: removed as the content is out of date
207 + d/nfs-common.docs: install README.Ubuntu instead of
208 README.Debian.nfsv4
209 + d/libnfsidmap1.docs: install README.Ubuntu
210
211 -- Andreas Hasenack <andreas@canonical.com> Wed, 16 Feb 2022 20:20:26 +0000
212
49nfs-utils (1:2.6.1-1~exp1) experimental; urgency=medium213nfs-utils (1:2.6.1-1~exp1) experimental; urgency=medium
50214
51 [ Romain Perier ]215 [ Romain Perier ]
@@ -167,6 +331,50 @@ nfs-utils (1:2.5.4-1~exp1) experimental; urgency=medium
167331
168 -- Anibal Monsalve Salazar <anibal@debian.org> Sun, 05 Sep 2021 23:50:09 +1000332 -- Anibal Monsalve Salazar <anibal@debian.org> Sun, 05 Sep 2021 23:50:09 +1000
169333
334nfs-utils (1:1.3.4-6ubuntu1) impish; urgency=medium
335
336 * Merge from Debian unstable (LP: #1929406). Remaining changes:
337 - debian/nfs-common.default: always start idmapd automatically; drop the
338 configuration option.
339 - debian/nfs-common.default: remove NEED_STATD and related comment.
340 - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
341 argument of the serialize_krb5_ctx() function.
342 - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
343 - Fixing nfs-mountd dependency on rpcbind (race condition) by adding
344 "rpcbind.socket" to "nfs-mountd.service" as a dependency to avoid race
345 conditions:
346 - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
347 - truncate_gid*.patch: Backports from upstream to prevent truncating UIDs
348 and GIDs over 65536 on certain architectures
349 - d/p/fix-start-ordering-1.patch, d/p/fix-start-ordering-2.patch, d/p/fix-
350 start-ordering-3.patch, d/nfs-kernel-server.install: Fix systemd service
351 start ordering
352 - Depend on network-online.target when starting services.
353 - d/p/lp1918141-use-network-online-target-01.patch: Declare a
354 Wants=network-online.target on all NFS server services.
355 - d/p/lp1918141-use-network-online-target-02.patch: Declare a
356 After=network-online.target on all NFS server services. Thanks to
357 Niklas Edmundsson for helping with the reproducer.
358 - d/nfs-common.postinst: always start nfs-utils.service, so the restart in
359 the #DEBHELPER# section can do its job if needed
360 * Removed patches obsoleted/merged by upstream:
361 - Remove hard-coded dep on libtirpc1; already merged upstream, but
362 previously un-noted
363 - d/nfs-utils_env.sh: alongside RPCSVCGSSDARGS, also export SVCGSSDARGS,
364 which is the variable name expected by the rpc-svcgssd systemd service;
365 already merged upstream, but previously un-noted
366 - d/p/python3.diff obsoleted by
367 d/p/Convert-remaining-python-scripts-to-python3.patch
368 * d/p/nfsiostat-replace-list-reserved-word.patch: re-instated after
369 previous merge removed a patch already merged upstream
370 * d/p/01-sm-notify-in-sbin.patch,
371 d/p/03-handle-mtab-symlink.patch,
372 d/p/17-multiarch-kerberos-paths.patch,
373 d/p/unbreak-blkmapd-rpc_pipefs-run.patch:
374 reverted unnecessary refresh of patches
375
376 -- Dave Jones <dave.jones@canonical.com> Tue, 06 Jul 2021 11:47:33 +0100
377
170nfs-utils (1:1.3.4-6) unstable; urgency=medium378nfs-utils (1:1.3.4-6) unstable; urgency=medium
171379
172 * mountstats: Remove a shebang380 * mountstats: Remove a shebang
@@ -184,6 +392,59 @@ nfs-utils (1:1.3.4-5) unstable; urgency=medium
184392
185 -- Salvatore Bonaccorso <carnil@debian.org> Tue, 09 Mar 2021 17:17:42 +0100393 -- Salvatore Bonaccorso <carnil@debian.org> Tue, 09 Mar 2021 17:17:42 +0100
186394
395nfs-utils (1:1.3.4-4ubuntu3) impish; urgency=medium
396
397 * d/nfs-common.postinst: always start nfs-utils.service, so the restart in
398 the #DEBHELPER# section can do its job if needed (LP: #1928259)
399
400 -- Andreas Hasenack <andreas@canonical.com> Mon, 24 May 2021 17:59:39 -0300
401
402nfs-utils (1:1.3.4-4ubuntu2) hirsute; urgency=medium
403
404 * Depend on network-online.target when starting services. (LP: #1918141)
405 - d/p/lp1918141-use-network-online-target-01.patch: Declare a
406 Wants=network-online.target on all NFS server services.
407 - d/p/lp1918141-use-network-online-target-02.patch: Declare a
408 After=network-online.target on all NFS server services.
409 Thanks to Niklas Edmundsson for helping with the reproducer.
410
411 -- Sergio Durigan Junior <sergio.durigan@canonical.com> Mon, 15 Mar 2021 18:26:22 -0400
412
413nfs-utils (1:1.3.4-4ubuntu1) hirsute; urgency=low
414
415 * Merge from Debian unstable. Remaining changes:
416 - debian/nfs-common.default: always start idmapd automatically; drop
417 the configuration option.
418 - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
419 argument of the serialize_krb5_ctx() function.
420 - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
421 - Fixing nfs-mountd dependency on rpcbind (race condition)
422 by adding "rpcbind.socket" to "nfs-mountd.service" as a dependency
423 to avoid race conditions:
424 - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
425 - Convert mountstats and nfsiostat scripts to Python3 and recommend
426 python3 instead of python.
427 - truncate_gid*.patch: Backports from upstream to prevent truncating
428 UIDs and GIDs over 65536 on certain architectures
429 - Remove hard-coded dep on libtirpc1.
430 - d/nfs-utils_env.sh: alongside RPCSVCGSSDARGS, also export SVCGSSDARGS,
431 which is the variable name expected by the rpc-svcgssd systemd service.
432 - d/p/fix-start-ordering-1.patch,
433 d/p/fix-start-ordering-2.patch,
434 d/p/fix-start-ordering-3.patch,
435 d/nfs-kernel-server.install:
436 Fix systemd service start ordering
437 * Dropped changes, included in Debian:
438 - Allow compilation to succeed with -fno-common
439 - debian/nfs-common.postinst: don't make /var/lib/nfs owned by statd.
440 - debian/patches/CVE-2019-3689.patch: take user-id from
441 /var/lib/nfs/sm in support/nsm/file.c, utils/statd/sm-notify.man,
442 utils/statd/statd.man.
443 - d/p/nfsiostat-replace-list-reserved-word.patch: fix nfsiostat crash due
444 to using 'list' as a variable name.
445
446 -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 26 Oct 2020 09:25:58 -0700
447
187nfs-utils (1:1.3.4-4) unstable; urgency=medium448nfs-utils (1:1.3.4-4) unstable; urgency=medium
188449
189 * Allow compilation to succeed with -fno-common (Closes: #957608)450 * Allow compilation to succeed with -fno-common (Closes: #957608)
@@ -222,6 +483,73 @@ nfs-utils (1:1.3.4-3) unstable; urgency=medium
222483
223 -- Salvatore Bonaccorso <carnil@debian.org> Fri, 13 Mar 2020 05:16:46 +0100484 -- Salvatore Bonaccorso <carnil@debian.org> Fri, 13 Mar 2020 05:16:46 +0100
224485
486nfs-utils (1:1.3.4-2.5ubuntu6) groovy; urgency=medium
487
488 * Allow compilation to succeed with -fno-common (Closes: #957608)
489 (cherry picked from 1:1.3.4-4)
490
491 -- Julian Andres Klode <juliank@ubuntu.com> Wed, 16 Sep 2020 16:20:55 +0200
492
493nfs-utils (1:1.3.4-2.5ubuntu5) groovy; urgency=medium
494
495 * SECURITY UPDATE: privilege escalation via directory permissions
496 - debian/patches/CVE-2019-3689.patch: take user-id from
497 /var/lib/nfs/sm in support/nsm/file.c, utils/statd/sm-notify.man,
498 utils/statd/statd.man.
499 - debian/nfs-common.postinst: don't make /var/lib/nfs owned by statd.
500 - CVE-2019-3689
501
502 -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Wed, 17 Jun 2020 08:42:59 -0400
503
504nfs-utils (1:1.3.4-2.5ubuntu4) groovy; urgency=medium
505
506 [ Rodrigo Barbieri ]
507 * d/p/fix-start-ordering-1.patch,
508 d/p/fix-start-ordering-2.patch,
509 d/p/fix-start-ordering-3.patch,
510 d/nfs-kernel-server.install:
511 - Fix systemd service start ordering (LP: #1871214)
512
513 -- Dariusz Gadomski <dariusz.gadomski@canonical.com> Thu, 28 May 2020 17:45:23 -0400
514
515nfs-utils (1:1.3.4-2.5ubuntu3) focal; urgency=medium
516
517 * No-change rebuild for libevent soname changes.
518
519 -- Matthias Klose <doko@ubuntu.com> Sat, 19 Oct 2019 19:57:12 +0000
520
521nfs-utils (1:1.3.4-2.5ubuntu2) eoan; urgency=medium
522
523 * No-change upload with strops.h and sys/strops.h removed in glibc.
524
525 -- Matthias Klose <doko@ubuntu.com> Thu, 05 Sep 2019 11:04:05 +0000
526
527nfs-utils (1:1.3.4-2.5ubuntu1) eoan; urgency=low
528
529 * Merge from Debian unstable. Remaining changes:
530 - debian/nfs-common.default: always start idmapd automatically; drop
531 the configuration option.
532 - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
533 argument of the serialize_krb5_ctx() function.
534 - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
535 - Fixing nfs-mountd dependency on rpcbind (race condition)
536 by adding "rpcbind.socket" to "nfs-mountd.service" as a dependency
537 to avoid race conditions:
538 - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
539 - Convert mountstats and nfsiostat scripts to Python3 and recommend
540 python3 instead of python.
541 - truncate_gid*.patch: Backports from upstream to prevent truncating
542 UIDs and GIDs over 65536 on certain architectures
543 - Remove hard-coded dep on libtirpc1.
544 - d/nfs-utils_env.sh: alongside RPCSVCGSSDARGS, also export SVCGSSDARGS,
545 which is the variable name expected by the rpc-svcgssd systemd service.
546 - d/p/nfsiostat-replace-list-reserved-word.patch: fix nfsiostat crash due
547 to using 'list' as a variable name.
548 * Dropped changes, included in Debian:
549 - glibc-2.28-compat.patch: Include <sys/sysmacros.h> for major/minor.
550
551 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 02 May 2019 22:43:12 -0700
552
225nfs-utils (1:1.3.4-2.5) unstable; urgency=medium553nfs-utils (1:1.3.4-2.5) unstable; urgency=medium
226554
227 * Non-maintainer upload.555 * Non-maintainer upload.
@@ -247,6 +575,43 @@ nfs-utils (1:1.3.4-2.4) unstable; urgency=medium
247575
248 -- Hilko Bengen <bengen@debian.org> Sat, 09 Feb 2019 15:26:27 +0100576 -- Hilko Bengen <bengen@debian.org> Sat, 09 Feb 2019 15:26:27 +0100
249577
578nfs-utils (1:1.3.4-2.3ubuntu3) disco; urgency=medium
579
580 * d/p/nfsiostat-replace-list-reserved-word.patch: fix nfsiostat crash due to
581 using 'list' as a variable name. (LP: #1821261)
582
583 -- Matthew Ruffell <matthew.ruffell@canonical.com> Tue, 02 Apr 2019 11:09:15 +1300
584
585nfs-utils (1:1.3.4-2.3ubuntu2) disco; urgency=medium
586
587 * d/nfs-utils_env.sh: alongside RPCSVCGSSDARGS, also export SVCGSSDARGS,
588 which is the variable name expected by the rpc-svcgssd systemd service.
589 (LP: #1616123)
590
591 -- Andreas Hasenack <andreas@canonical.com> Mon, 25 Mar 2019 09:24:29 -0300
592
593nfs-utils (1:1.3.4-2.3ubuntu1) disco; urgency=low
594
595 * Merge from Debian unstable. Remaining changes:
596 - debian/nfs-common.default: always start idmapd automatically; drop
597 the configuration option.
598 - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
599 argument of the serialize_krb5_ctx() function.
600 - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
601 (LP: #1446851)
602 - Fixing nfs-mountd dependency on rpcbind (race condition) (LP: #1590799)
603 by adding "rpcbind.socket" to "nfs-mountd.service" as a dependency
604 to avoid race conditions:
605 - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
606 - Convert mountstats and nfsiostat scripts to Python3 and recommend
607 python3 instead of python.
608 - glibc-2.28-compat.patch: Include <sys/sysmacros.h> for major/minor.
609 - truncate_gid*.patch: Backports from upstream to prevent truncating
610 UIDs and GIDs over 65536 on certain architectures
611 - Remove hard-coded dep on libtirpc1.
612
613 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 31 Jan 2019 23:18:10 -0800
614
250nfs-utils (1:1.3.4-2.3) unstable; urgency=medium615nfs-utils (1:1.3.4-2.3) unstable; urgency=medium
251616
252 * Non-maintainer upload.617 * Non-maintainer upload.
@@ -266,6 +631,51 @@ nfs-utils (1:1.3.4-2.3) unstable; urgency=medium
266631
267 -- Laurent Bigonville <bigon@debian.org> Sat, 20 Oct 2018 15:04:07 +0200632 -- Laurent Bigonville <bigon@debian.org> Sat, 20 Oct 2018 15:04:07 +0200
268633
634nfs-utils (1:1.3.4-2.2ubuntu5) disco; urgency=medium
635
636 * Remove hard-coded dep on libtirpc1.
637
638 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 13 Nov 2018 17:03:07 -0800
639
640nfs-utils (1:1.3.4-2.2ubuntu4) disco; urgency=medium
641
642 * No-change rebuild against latest libtirpc
643
644 -- Jeremy Bicha <jbicha@ubuntu.com> Sat, 10 Nov 2018 07:54:17 -0500
645
646nfs-utils (1:1.3.4-2.2ubuntu3) cosmic; urgency=medium
647
648 * truncate_gid*.patch: Backports from upstream to prevent truncating
649 UIDs and GIDs over 65536 on certain architectures (LP: #1779962)
650
651 -- Adam Conrad <adconrad@ubuntu.com> Tue, 16 Oct 2018 06:06:43 -0600
652
653nfs-utils (1:1.3.4-2.2ubuntu2) cosmic; urgency=medium
654
655 * glibc-2.28-compat.patch: Include <sys/sysmacros.h> for major/minor.
656
657 -- Adam Conrad <adconrad@ubuntu.com> Tue, 16 Oct 2018 05:24:40 -0600
658
659nfs-utils (1:1.3.4-2.2ubuntu1) cosmic; urgency=medium
660
661 * Merge from Debian unstable. Remaining changes:
662 - debian/nfs-common.default: always start idmapd automatically; drop
663 the configuration option.
664 - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
665 argument of the serialize_krb5_ctx() function.
666 - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
667 (LP: #1446851)
668 - Fixing nfs-mountd dependency on rpcbind (race condition) (LP: #1590799)
669 by adding "rpcbind.socket" to "nfs-mountd.service" as a dependency
670 to avoid race conditions:
671 - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
672 - Convert mountstats and nfsiostat scripts to Python3 and recommend
673 python3 instead of python.
674 * Dropped already integrated changes:
675 - Provide UINT16_MAX definition if not provided by glibc.
676
677 -- Balint Reczey <rbalint@ubuntu.com> Thu, 23 Aug 2018 16:16:30 +0200
678
269nfs-utils (1:1.3.4-2.2) unstable; urgency=medium679nfs-utils (1:1.3.4-2.2) unstable; urgency=medium
270680
271 * Non-maintainer upload.681 * Non-maintainer upload.
@@ -277,6 +687,55 @@ nfs-utils (1:1.3.4-2.2) unstable; urgency=medium
277687
278 -- Adrian Bunk <bunk@debian.org> Tue, 06 Feb 2018 21:20:36 +0200688 -- Adrian Bunk <bunk@debian.org> Tue, 06 Feb 2018 21:20:36 +0200
279689
690nfs-utils (1:1.3.4-2.1ubuntu5) bionic; urgency=medium
691
692 * Drop obsoleted 20-ticket-expired-error.patch (LP: #1709129)
693 The original issue is fixed in the kernel starting with version 3.10.
694 * Refresh patches
695 * Remove whitespace after '=' in service files
696
697 -- Balint Reczey <rbalint@ubuntu.com> Tue, 16 Jan 2018 23:49:38 +0100
698
699nfs-utils (1:1.3.4-2.1ubuntu4) bionic; urgency=medium
700
701 * Convert mountstats and nfsiostat scripts to Python3 and recommend
702 python3 instead of python. LP: #1735458.
703 * Provide UINT16_MAX definition if not provided by glibc.
704
705 -- Matthias Klose <doko@ubuntu.com> Fri, 01 Dec 2017 03:49:39 +0100
706
707nfs-utils (1:1.3.4-2.1ubuntu2) artful; urgency=medium
708
709 * Fix flaky autopkgtest: a 'sync' after an update on the server does not
710 guarantee that the change is visible on the client. For that, we need
711 to flush the inode/dentry cache instead.
712
713 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 31 Aug 2017 23:08:25 -0700
714
715nfs-utils (1:1.3.4-2.1ubuntu1) artful; urgency=low
716
717 * Merge from Debian unstable. Remaining changes:
718 - debian/nfs-common.default: always start idmapd automatically; drop
719 the configuration option.
720 - Add 20-ticket-expired-error.patch: Add "-e" (ticket expiry is error)
721 option to rpc.gssd to prevent hangs due to EKEYEXPIRED error from kernel
722 on ticket expiry. (LP: #794112)
723 - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
724 argument of the serialize_krb5_ctx() function. (LP: #1331201)
725 - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
726 (LP: #1446851)
727 - Add debian/nfs-common.maintscript: Clean up obsolete conffiles (upstart
728 jobs) on upgrades. This needs to be kept until after 18.04 LTS.
729 - Fixing nfs-mountd dependency on rpcbind (race condition) (LP: #1590799)
730 by adding "rpcbind.socket" to "nfs-mountd.service" as a dependency
731 to avoid race conditions:
732 - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
733 * Dropped already integrated changes:
734 - Add a dependency on keyutils to nfs-common, so that idmapping will work
735 under systemd. (LP: #1449074)
736
737 -- Balint Reczey <rbalint@ubuntu.com> Thu, 03 Aug 2017 20:50:38 +0200
738
280nfs-utils (1:1.3.4-2.1) unstable; urgency=medium739nfs-utils (1:1.3.4-2.1) unstable; urgency=medium
281740
282 * Non-maintainer upload.741 * Non-maintainer upload.
@@ -310,6 +769,22 @@ nfs-utils (1:1.3.4-1) unstable; urgency=medium
310769
311 -- Daniel Pocock <daniel@pocock.pro> Tue, 13 Dec 2016 19:37:42 +0100770 -- Daniel Pocock <daniel@pocock.pro> Tue, 13 Dec 2016 19:37:42 +0100
312771
772nfs-utils (1:1.2.8-9.2ubuntu2) zesty; urgency=medium
773
774 * Fixing nfs-mountd dependency on rpcbind (race condition) (LP: #1590799)
775 by adding "rpcbind.socket" to "nfs-mountd.service" as a dependency
776 to avoid race conditions:
777 - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
778 - Add systemd-unit-files-fix-up-dependencies-on-rpcbind.patch
779
780 -- Rafael David Tinoco <rafael.tinoco@canonical.com> Fri, 17 Mar 2017 12:19:53 +0100
781
782nfs-utils (1:1.2.8-9.2ubuntu1) yakkety; urgency=medium
783
784 * Merge fixes from Debian.
785
786 -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 12 Sep 2016 23:18:00 +0200
787
313nfs-utils (1:1.2.8-9.2) unstable; urgency=medium788nfs-utils (1:1.2.8-9.2) unstable; urgency=medium
314789
315 * Non-maintainer upload.790 * Non-maintainer upload.
@@ -325,6 +800,27 @@ nfs-utils (1:1.2.8-9.2) unstable; urgency=medium
325800
326 -- Andreas Henriksson <andreas@fatal.se> Thu, 11 Aug 2016 18:50:24 +0200801 -- Andreas Henriksson <andreas@fatal.se> Thu, 11 Aug 2016 18:50:24 +0200
327802
803nfs-utils (1:1.2.8-9.1ubuntu1) yakkety; urgency=medium
804
805 * Drop upstart jobs, upstart is not in yakkety any more.
806 * Drop libgssglue-dev build dep, --with-gssglue got dropped a while ago.
807 * Merge with Debian unstable. Remaining Ubuntu changes:
808 - debian/nfs-common.default: always start idmapd automatically; drop
809 the configuration option.
810 - Add 20-ticket-expired-error.patch: Add "-e" (ticket expiry is error)
811 option to rpc.gssd to prevent hangs due to EKEYEXPIRED error from kernel
812 on ticket expiry. (LP: #794112)
813 - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
814 argument of the serialize_krb5_ctx() function. (LP: #1331201)
815 - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
816 (LP: #1446851)
817 - Add a dependency on keyutils to nfs-common, so that idmapping will work
818 under systemd. (LP: #1449074)
819 - Add debian/nfs-common.maintscript: Clean up obsolete conffiles (upstart
820 jobs) on upgrades. This needs to be kept until after 18.04 LTS.
821
822 -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 28 Jul 2016 15:21:53 +0200
823
328nfs-utils (1:1.2.8-9.1) unstable; urgency=medium824nfs-utils (1:1.2.8-9.1) unstable; urgency=medium
329825
330 Partial sync from ubuntu, included changes:826 Partial sync from ubuntu, included changes:
@@ -389,6 +885,149 @@ nfs-utils (1:1.2.8-9.1) unstable; urgency=medium
389885
390 -- Andreas Henriksson <andreas@fatal.se> Tue, 28 Jun 2016 02:05:16 +0200886 -- Andreas Henriksson <andreas@fatal.se> Tue, 28 Jun 2016 02:05:16 +0200
391887
888nfs-utils (1:1.2.8-9ubuntu13) yakkety; urgency=medium
889
890 * Drop obsolete versioned initscripts dependency. (Closes: #804990)
891
892 -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 22 Jun 2016 16:09:37 +0200
893
894nfs-utils (1:1.2.8-9ubuntu12) xenial; urgency=medium
895
896 * Drop gssproxy as it's not in Ubuntu (LP: #1446851)
897 * Fix no nfs doesn't show failed units on client (LP: #1452667)
898
899 -- Bryan Quigley <bryan.quigley@canonical.com> Wed, 02 Mar 2016 15:01:29 -0500
900
901nfs-utils (1:1.2.8-9ubuntu11) xenial; urgency=medium
902
903 * Drop obsolete and no-op dh_installinit --upstart-only option.
904 (LP: #1519228)
905
906 -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 24 Nov 2015 09:39:56 +0100
907
908nfs-utils (1:1.2.8-9ubuntu10) wily; urgency=medium
909
910 * debian/nfs-common.links: Add naming compatibility symlinks for
911 gssd.service → rpc-gssd.service and idmapd.service → /dev/null (as this
912 is bound to/handled by nfs-server.service) to provide a match for the
913 upstart job names. (LP: #1476010).
914
915 -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 28 Aug 2015 09:59:48 +0200
916
917nfs-utils (1:1.2.8-9ubuntu9) wily; urgency=medium
918
919 * Drop versioned mountall dependency. Trusty's is already newer and we don't
920 need it with systemd under Ubuntu 15.04 and newer.
921
922 -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 27 Jul 2015 10:37:24 +0200
923
924nfs-utils (1:1.2.8-9ubuntu8.1) vivid; urgency=medium
925
926 * Add a dependency on keyutils to nfs-common, so that idmapping will work
927 under systemd. LP: #1449074.
928
929 -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 27 Apr 2015 17:46:03 +0200
930
931nfs-utils (1:1.2.8-9ubuntu8) vivid; urgency=medium
932
933 * Ship missing .override files
934 * Ensure we only remove the manual flag from the statd-mounting.override
935 file, and potentially, remove it if empty.
936
937 -- Didier Roche <didrocks@ubuntu.com> Wed, 01 Apr 2015 08:22:59 +0200
938
939nfs-utils (1:1.2.8-9ubuntu7) vivid; urgency=medium
940
941 * 27-systemd-enable-with-systemctl-statd.patch: let the admin
942 enable/disable statd via systemd tools. (LP: #1428486)
943 * debian/nfs-common.default: remove NEED_STATD and related comment.
944 * debian/statd{,-mounting}.upstart: remove the usage of NEED_STATD, we'll
945 directly disable the jobs now.
946 * debian/rules: don't start statd by default (or it will trigger upstart
947 and systemd statd unit startup).
948 * debian/nfs-common.{preinst,postinst}: transition the conffile to the new
949 template and enable statd services in both upstart and systemd if
950 NEED_STATD was set to yes.
951 * debian/control, debian/*install: move nfs-utils.service to nfs-common
952 package. (LP: #1436304)
953
954 -- Didier Roche <didrocks@ubuntu.com> Thu, 12 Mar 2015 09:13:06 +0100
955
956nfs-utils (1:1.2.8-9ubuntu6) vivid; urgency=medium
957
958 * Revert previous upload; per upstream, rpc.idmapd is not used when the
959 nfsidmap utility is available and configured for use in request-key
960 upcalls. So rpc.idmapd does not need to be started on clients anymore.
961
962 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 06 Mar 2015 10:19:57 -0800
963
964nfs-utils (1:1.2.8-9ubuntu5) vivid; urgency=medium
965
966 * Add 27-systemd-start-nfs-idmapd-also-on-clients.patch: idmapd is needed
967 for clients too, so start it from nfs-client.target and stop binding to it
968 in nfs-server.service. (LP: #1428961)
969
970 -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 06 Mar 2015 11:56:46 +0100
971
972nfs-utils (1:1.2.8-9ubuntu4) vivid; urgency=medium
973
974 * Add autopkgtest for installing server and client on localhost, setting up
975 two exports, rebooting, and ensuring that the NFS mounts work.
976 * Add 23-systemd-relax-dependencies.patch: Stop depending on basic.target in
977 the daemons which still do; i. e. add DefaultDependencies=no. This makes
978 it possible to run NFS during early boot, helps if you e. g. have /var
979 on NFS, and avoids dependency cycles with rcS init.d scripts which depend
980 on $remote_fs. (LP: #1428487)
981 * Shift number prefixes of other systemd patches accordingly, and adjust
982 them to the above patch.
983
984 -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 05 Mar 2015 10:43:54 +0100
985
986nfs-utils (1:1.2.8-9ubuntu3) vivid; urgency=medium
987
988 * Add 00git-start-statd-systemd.patch: Latest start-statd script from
989 1.3.2 to start rpc-statd.service under systemd.
990 * Add 23-systemd-pipefs_in_run.patch: systemd: Mount rpc_pipefs in /run instead of
991 /var/lib/nfs/, like in the upstart units.
992 * Add 24-systemd-daemon-paths.patch: Adjust program paths in systemd units.
993 * debian/nfs-kernel-server.links: Add nfs-kernel-server.service alias
994 symlink, to match SysV init script.
995 * Add 25-systemd-server-before-client.patch: Order NFS server before client,
996 to make mounting NFS shares from localhost work reliably.
997 * Add debian/nfs-utils_env.sh: Translate our /etc/default files into runtime
998 configuration for nfs-config.service.
999 * debian/nfs-{common,kernel-server}.install: Install systemd units.
1000 * debian/rules: Enable/start systemd units. (LP: #1312976)
1001
1002 -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 05 Mar 2015 07:46:41 +0100
1003
1004nfs-utils (1:1.2.8-9ubuntu2) vivid; urgency=medium
1005
1006 * debian/nfs-common.statd.upstart: wait for rpcbind job instead of
1007 relying on portmap compatibility event. (LP: #1391296)
1008
1009 -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Tue, 18 Nov 2014 19:07:15 -0500
1010
1011nfs-utils (1:1.2.8-9ubuntu1) utopic; urgency=medium
1012
1013 * Merge from Debian usntable, remaining changes:
1014 - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1015 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1016 debian/rules: drop nfs-common init script in favor of upstart jobs.
1017 - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1018 - Depend on mountall (>= 2.41) to avoid deadlocks on boot.
1019 - debian/nfs-common.default: always start idmapd automatically; drop
1020 the configuration option.
1021 - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1022 - Allow issuing options to rpc.nfsd
1023 - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs
1024 due to EKEYEXPIRED error from kernel on ticket expiry.
1025 - drop nfs-kernel-server's LSB dependency on nfs-common.
1026 - Add patch to adjust for changes to the ctx argument of the
1027 serialize_krb5_ctx() function.
1028
1029 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 21 Aug 2014 11:29:38 -0700
1030
392nfs-utils (1:1.2.8-9) unstable; urgency=medium1031nfs-utils (1:1.2.8-9) unstable; urgency=medium
3931032
394 * debian/patches/22-mountd-fix-segfault-in-add_name-with-newer-gcc-1033 * debian/patches/22-mountd-fix-segfault-in-add_name-with-newer-gcc-
@@ -397,6 +1036,26 @@ nfs-utils (1:1.2.8-9) unstable; urgency=medium
3971036
398 -- Steve Langasek <vorlon@debian.org> Tue, 12 Aug 2014 17:12:38 -07001037 -- Steve Langasek <vorlon@debian.org> Tue, 12 Aug 2014 17:12:38 -0700
3991038
1039nfs-utils (1:1.2.8-8ubuntu1) utopic; urgency=medium
1040
1041 * Merge from Debian unstable, remaining changes:
1042 - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1043 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1044 debian/rules: drop nfs-common init script in favor of upstart jobs.
1045 - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1046 - Depend on mountall (>= 2.41) to avoid deadlocks on boot.
1047 - debian/nfs-common.default: always start idmapd automatically; drop
1048 the configuration option.
1049 - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1050 - Allow issuing options to rpc.nfsd
1051 - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs
1052 due to EKEYEXPIRED error from kernel on ticket expiry.
1053 - drop nfs-kernel-server's LSB dependency on nfs-common.
1054 - Add patch to adjust for changes to the ctx argument of the
1055 serialize_krb5_ctx() function.
1056
1057 -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 11 Aug 2014 01:10:28 -0700
1058
400nfs-utils (1:1.2.8-8) unstable; urgency=medium1059nfs-utils (1:1.2.8-8) unstable; urgency=medium
4011060
402 * Upload to unstable where this belongs.1061 * Upload to unstable where this belongs.
@@ -417,6 +1076,38 @@ nfs-utils (1:1.2.8-7) experimental; urgency=medium
4171076
418 -- Anibal Monsalve Salazar <anibal@debian.org> Sat, 02 Aug 2014 12:25:47 +01001077 -- Anibal Monsalve Salazar <anibal@debian.org> Sat, 02 Aug 2014 12:25:47 +0100
4191078
1079nfs-utils (1:1.2.8-6ubuntu4) utopic; urgency=medium
1080
1081 * Add patch from Sergio Gelato to adjust for changes to the ctx
1082 argument of the serialize_krb5_ctx() function (LP: #1331201)
1083
1084 -- Adam Conrad <adconrad@ubuntu.com> Wed, 25 Jun 2014 12:23:09 -0600
1085
1086nfs-utils (1:1.2.8-6ubuntu3) utopic; urgency=medium
1087
1088 * Soon nfs-common.init is going to be split on the Debian side, and
1089 nfs-kernel-server init.d's LSB depends on "nfs-common" has never done
1090 anything in Ubuntu. Drop it to avoid breaking insserv. (LP: #1323274)
1091
1092 -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 27 May 2014 11:38:51 +0200
1093
1094nfs-utils (1:1.2.8-6ubuntu1) trusty; urgency=medium
1095
1096 * Merge from Debian unstable, remaining changes:
1097 - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1098 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1099 debian/rules: drop nfs-common init script in favor of upstart jobs.
1100 - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1101 - Depend on mountall (>= 2.41) to avoid deadlocks on boot.
1102 - debian/nfs-common.default: always start idmapd automatically; drop
1103 the configuration option.
1104 - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1105 - Allow issuing options to rpc.nfsd
1106 - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs
1107 due to EKEYEXPIRED error from kernel on ticket expiry.
1108
1109 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 25 Feb 2014 09:18:47 -0800
1110
420nfs-utils (1:1.2.8-6) unstable; urgency=medium1111nfs-utils (1:1.2.8-6) unstable; urgency=medium
4211112
422 * Fix the sec=krb5* handling in debian/nfs-common.init to properly match1113 * Fix the sec=krb5* handling in debian/nfs-common.init to properly match
@@ -443,6 +1134,29 @@ nfs-utils (1:1.2.8-6) unstable; urgency=medium
4431134
444 -- Steve Langasek <vorlon@debian.org> Mon, 24 Feb 2014 18:11:17 +00001135 -- Steve Langasek <vorlon@debian.org> Mon, 24 Feb 2014 18:11:17 +0000
4451136
1137nfs-utils (1:1.2.8-5ubuntu1) trusty; urgency=medium
1138
1139 * Merge from Debian unstable, remaining changes:
1140 - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1141 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1142 debian/rules: drop nfs-common init script in favor of upstart jobs.
1143 - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1144 - Depend on mountall (>= 2.41) to avoid deadlocks on boot.
1145 - debian/nfs-common.default: always start idmapd automatically; drop
1146 the configuration option.
1147 - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1148 - Allow issuing options to rpc.nfsd
1149 - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs
1150 due to EKEYEXPIRED error from kernel on ticket expiry.
1151 * Dropped changes, included in Debian:
1152 - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
1153 in /var/lib.
1154 - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1155 in the postinst, this is redundant anyway and the nfs-common init script
1156 is gone now.
1157
1158 -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 13 Jan 2014 21:13:11 -0800
1159
446nfs-utils (1:1.2.8-5) unstable; urgency=medium1160nfs-utils (1:1.2.8-5) unstable; urgency=medium
4471161
448 [ Ben Hutchings ]1162 [ Ben Hutchings ]
@@ -459,6 +1173,37 @@ nfs-utils (1:1.2.8-5) unstable; urgency=medium
4591173
460 -- Steve Langasek <vorlon@debian.org> Mon, 13 Jan 2014 22:07:53 +00001174 -- Steve Langasek <vorlon@debian.org> Mon, 13 Jan 2014 22:07:53 +0000
4611175
1176nfs-utils (1:1.2.8-4ubuntu1) trusty; urgency=low
1177
1178 * Merge from Debian unstable, remaining changes:
1179 - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1180 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1181 debian/rules: drop nfs-common init script in favor of upstart jobs.
1182 - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1183 - Depend on mountall (>= 2.41) to avoid deadlocks on boot.
1184 - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1185 in the postinst, this is redundant anyway and the nfs-common init script
1186 is gone now.
1187 - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1188 - Allow issuing options to rpc.nfsd
1189 - debian/nfs-common.defaults: always start idmapd automatically; drop
1190 the configuration option.
1191 - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
1192 in /var/lib.
1193 - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs due
1194 to EKEYEXPIRED error from kernel on ticket expiry. LP: #794112
1195 - Fix the stop conditions: never stop on 'runlevel [06]' since that gives
1196 the system no time to cleanly unmount nfs mounts; instead, stop only on
1197 the unmounted-remote-filesystems event. LP: #569094.
1198 * Dropped changes:
1199 - build-depend on debhelper (>= 7.3.15ubuntu3): all supported debhelper
1200 versions meet this requirement now, so it's not worth carrying a delta
1201 for.
1202 * Drop removal handling for rpc_pipefs.conf, which has been obsolete since
1203 before the 12.04 release.
1204
1205 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 21 Nov 2013 13:35:20 -0800
1206
462nfs-utils (1:1.2.8-4) unstable; urgency=low1207nfs-utils (1:1.2.8-4) unstable; urgency=low
4631208
464 * The configure option name is --with-gssglue, not --with-libgssglue.1209 * The configure option name is --with-gssglue, not --with-libgssglue.
@@ -477,6 +1222,64 @@ nfs-utils (1:1.2.8-3) unstable; urgency=low
4771222
478 -- Steve Langasek <vorlon@debian.org> Fri, 31 May 2013 17:59:53 -07001223 -- Steve Langasek <vorlon@debian.org> Fri, 31 May 2013 17:59:53 -0700
4791224
1225nfs-utils (1:1.2.8-2ubuntu2) saucy; urgency=low
1226
1227 * Start statd on virtual-filesystems instead of on local-filesystems;
1228 this works and avoids a deadlock in the nfsroot case. Also, adjust
1229 idmapd to not block MOUNTPOINT=/ for the same reason. This isn't a
1230 perfect fix since idmapd would be needed if we ever wanted nfsv4
1231 nfsroot, but implementing that can wait until we have /usr mounting from
1232 the initramfs. LP: #537133.
1233
1234 -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 11 Sep 2013 15:00:02 -0700
1235
1236nfs-utils (1:1.2.8-2ubuntu1) saucy; urgency=low
1237
1238 [ Stéphane Graber ]
1239 * Merge from Debian unstable.
1240 - includes upstream fix for gssd -R. LP: #1179992.
1241 - includes upstream fix for an exportfs crash when using long paths.
1242 LP: #1062022.
1243 * Remaining changes:
1244 - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1245 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1246 debian/rules: drop nfs-common init script in favor of upstart jobs,
1247 and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
1248 init handling.
1249 - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1250 - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1251 in the postinst, this is redundant anyway and the nfs-common init script
1252 is gone now.
1253 - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1254 - Allow issuing options to rpc.nfsd
1255 - debian/nfs-common.defaults: always start idmapd automatically; drop
1256 the configuration option.
1257 - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
1258 in /var/lib.
1259 - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs due
1260 to EKEYEXPIRED error from kernel on ticket expiry. LP: #794112
1261 - Adjust upstart jobs to treat TYPE=nfs and TYPE=nfs4 mounts identically,
1262 since TYPE=nfs4 is considered deprecated.
1263 - Fix various boot-time race conditions between mountall and nfs-utils by
1264 moving handling of the 'mounting' events to separate gssd-mounting and
1265 idmapd-mounting jobs. Requires mountall 2.41 or better to avoid deadlock
1266 on boot. LP: #643289, LP: #611397.
1267 - Fix the stop conditions: never stop on 'runlevel [06]' since that gives
1268 the system no time to cleanly unmount nfs mounts; instead, stop only on
1269 the unmounted-remote-filesystems event. LP: #569094.
1270 - Newer versions of gssd don't talk to portmap, so don't make the upstart
1271 job depend on it.
1272 - Add an instance to statd-mounting, and change it to just wait for statd
1273 instead of trying to trigger it potentially out of order. This also
1274 means we don't need to try to force portmap to start from statd.
1275
1276 [ Steve Langasek ]
1277 * Build --with-gssglue; linking directly against libgssapi-krb5 results in
1278 rpc.gssd trying to incorrectly pass opaque pointers between two different
1279 gss implementations (via libtirpc).
1280
1281 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 31 May 2013 18:05:03 -0700
1282
480nfs-utils (1:1.2.8-2) unstable; urgency=medium1283nfs-utils (1:1.2.8-2) unstable; urgency=medium
4811284
482 * Fix reportbug scripts to use rpcinfo in /usr/sbin.1285 * Fix reportbug scripts to use rpcinfo in /usr/sbin.
@@ -506,12 +1309,80 @@ nfs-utils (1:1.2.8-1) unstable; urgency=low
5061309
507 -- Luk Claes <luk@zomers.be> Fri, 10 May 2013 14:27:47 +02001310 -- Luk Claes <luk@zomers.be> Fri, 10 May 2013 14:27:47 +0200
5081311
1312nfs-utils (1:1.2.6-3ubuntu2) quantal; urgency=low
1313
1314 [ Steve Langasek ]
1315 * Adjust upstart jobs to treat TYPE=nfs and TYPE=nfs4 mounts identically,
1316 since TYPE=nfs4 is considered deprecated.
1317 * Fix various boot-time race conditions between mountall and nfs-utils by
1318 moving handling of the 'mounting' events to separate gssd-mounting and
1319 idmapd-mounting jobs. Requires mountall 2.41 or better to avoid deadlock
1320 on boot. LP: #643289, LP: #611397.
1321 * Fix the stop conditions: never stop on 'runlevel [06]' since that gives
1322 the system no time to cleanly unmount nfs mounts; instead, stop only on
1323 the unmounted-remote-filesystems event. LP: #569094.
1324 * Newer versions of gssd don't talk to portmap, so don't make the upstart
1325 job depend on it.
1326 * Add an instance to statd-mounting, and change it to just wait for statd
1327 instead of trying to trigger it potentially out of order. This also means
1328 we don't need to try to force portmap to start from statd.
1329
1330 [ Matthew L. Dailey ]
1331 * Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs due
1332 to EKEYEXPIRED error from kernel on ticket expiry. LP: #794112
1333
1334 -- Stéphane Graber <stgraber@ubuntu.com> Fri, 28 Sep 2012 13:58:43 -0400
1335
1336nfs-utils (1:1.2.6-3ubuntu1) quantal; urgency=low
1337
1338 * Merge from Debian unstable. Remaining changes:
1339 - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1340 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1341 debian/rules: drop nfs-common init script in favor of upstart jobs,
1342 and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
1343 init handling.
1344 - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1345 - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1346 in the postinst, this is redundant anyway and the nfs-common init script
1347 is gone now.
1348 - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1349 - Allow issuing options to rpc.nfsd
1350 - debian/nfs-common.defaults: always start idmapd automatically; drop
1351 the configuration option.
1352 - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
1353 in /var/lib.
1354
1355 -- Logan Rosen <logatronico@gmail.com> Sun, 05 Aug 2012 00:56:05 -0400
1356
509nfs-utils (1:1.2.6-3) unstable; urgency=low1357nfs-utils (1:1.2.6-3) unstable; urgency=low
5101358
511 * Iterate through exports.d to look for expors (Closes: #676604).1359 * Iterate through exports.d to look for expors (Closes: #676604).
5121360
513 -- Luk Claes <luk@zomers.be> Tue, 10 Jul 2012 19:38:22 +02001361 -- Luk Claes <luk@zomers.be> Tue, 10 Jul 2012 19:38:22 +0200
5141362
1363nfs-utils (1:1.2.6-2ubuntu1) quantal; urgency=low
1364
1365 * Merge from Debian unstable, remaining changes:
1366 - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1367 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1368 debian/rules: drop nfs-common init script in favor of upstart jobs,
1369 and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
1370 init handling.
1371 - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1372 - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1373 in the postinst, this is redundant anyway and the nfs-common init script
1374 is gone now.
1375 - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1376 - Allow issuing options to rpc.nfsd
1377 - debian/nfs-common.defaults: always start idmapd automatically; drop
1378 the configuration option.
1379 - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
1380 in /var/lib.
1381 * Dropped changes, included in Debian:
1382 - nfs-kernel-server.default: Add comment about how to disable nfs4.
1383
1384 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 22 Jun 2012 11:25:28 -0700
1385
515nfs-utils (1:1.2.6-2) unstable; urgency=low1386nfs-utils (1:1.2.6-2) unstable; urgency=low
5161387
517 * Move open-iscsi and watchdog to Suggests.1388 * Move open-iscsi and watchdog to Suggests.
@@ -539,6 +1410,44 @@ nfs-utils (1:1.2.5-4) unstable; urgency=low
5391410
540 -- Luk Claes <luk@debian.org> Sun, 22 Jan 2012 15:46:25 +01001411 -- Luk Claes <luk@debian.org> Sun, 22 Jan 2012 15:46:25 +0100
5411412
1413nfs-utils (1:1.2.5-3ubuntu3) precise; urgency=low
1414
1415 * In some cases, /var/lib/nfs/rpc_pipefs is successfully unmounted on
1416 upgrade but the directory still has contents within it. Since this is
1417 /var/lib we shouldn't assume it's ok for delete these; instead, pass
1418 --ignore-fail-on-non-empty to rmdir. LP: #954619.
1419
1420 -- Steve Langasek <steve.langasek@ubuntu.com> Sun, 08 Apr 2012 22:44:40 -0700
1421
1422nfs-utils (1:1.2.5-3ubuntu2) precise; urgency=low
1423
1424 * Fix wrong path to rpcinfo in the init script, which breaks use of nfs
1425 v3 support in the server. LP: #945651.
1426
1427 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 27 Mar 2012 10:44:03 -0700
1428
1429nfs-utils (1:1.2.5-3ubuntu1) precise; urgency=low
1430
1431 * Merge from Debian testing, remaining changes:
1432 - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1433 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1434 debian/rules: drop nfs-common init script in favor of upstart jobs,
1435 and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
1436 init handling.
1437 - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1438 - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1439 in the postinst, this is redundant anyway and the nfs-common init script
1440 is gone now.
1441 - nfs-kernel-server.default: Add comment about how to disable nfs4.
1442 - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1443 - Allow issuing options to rpc.nfsd
1444 - debian/nfs-common.defaults: always start idmapd automatically; drop
1445 the configuration option.
1446 - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
1447 in /var/lib.
1448
1449 -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 04 Jan 2012 09:20:27 -0800
1450
542nfs-utils (1:1.2.5-3) unstable; urgency=low1451nfs-utils (1:1.2.5-3) unstable; urgency=low
5431452
544 [ Roger Leigh ]1453 [ Roger Leigh ]
@@ -557,6 +1466,33 @@ nfs-utils (1:1.2.5-3) unstable; urgency=low
5571466
558 -- Luk Claes <luk@debian.org> Fri, 09 Dec 2011 11:55:31 +01001467 -- Luk Claes <luk@debian.org> Fri, 09 Dec 2011 11:55:31 +0100
5591468
1469nfs-utils (1:1.2.5-2ubuntu1) precise; urgency=low
1470
1471 * Merge from Debian testing, remaining changes:
1472 - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1473 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1474 debian/rules: drop nfs-common init script in favor of upstart jobs,
1475 and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
1476 init handling.
1477 - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1478 - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1479 in the postinst, this is redundant anyway and the nfs-common init script
1480 is gone now.
1481 - nfs-kernel-server.default: Add comment about how to disable nfs4.
1482 - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1483 - Allow issuing options to rpc.nfsd
1484 - debian/nfs-common.defaults: always start idmapd automatically; drop
1485 the configuration option.
1486 - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
1487 in /var/lib.
1488 * Dropped changes, superseded in Debian/upstream:
1489 - debian/patches/multiarch-kerberos-paths: Search for kerberos libs
1490 in multiarch locations.
1491 - ubuntu-fix-kernel-version-handling: avoid segfaults from short kernel
1492 version numbers.
1493
1494 -- Steve Langasek <steve.langasek@ubuntu.com> Sun, 30 Oct 2011 00:12:50 +0000
1495
560nfs-utils (1:1.2.5-2) unstable; urgency=low1496nfs-utils (1:1.2.5-2) unstable; urgency=low
5611497
562 * debian/patches/18-dont-use-PAGE_SIZE.patch1498 * debian/patches/18-dont-use-PAGE_SIZE.patch
@@ -599,6 +1535,57 @@ nfs-utils (1:1.2.4-2) UNRELEASED; urgency=low
5991535
600 -- Luk Claes <luk@debian.org> Sat, 06 Aug 2011 07:38:48 +02001536 -- Luk Claes <luk@debian.org> Sat, 06 Aug 2011 07:38:48 +0200
6011537
1538nfs-utils (1:1.2.4-1ubuntu4) precise; urgency=low
1539
1540 * debian/nfs-common.postinst: handle the case when /var/lib/nfs/rpc_pipefs
1541 is not already mounted on upgrade - dpkg will already remove the
1542 directory for us on upgrade, so don't fail when it's missing.
1543 LP: #882799.
1544
1545 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 27 Oct 2011 16:21:22 -0700
1546
1547nfs-utils (1:1.2.4-1ubuntu3) precise; urgency=low
1548
1549 * debian/nfs-common.defaults, debian/nfs-common.idmapd.upstart: idmapd
1550 should always be started automatically, because we can no longer assume
1551 that a mount of type 'nfs' in /etc/fstab is not nfs4. This also lets
1552 things work by default with nfs4 autofs. LP: #662711.
1553 * Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
1554 in /var/lib.
1555 * Ignore errors from mount if the filesystem is already mounted.
1556 LP: #811823.
1557
1558 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 27 Oct 2011 12:04:58 -0700
1559
1560nfs-utils (1:1.2.4-1ubuntu2) oneiric; urgency=low
1561
1562 * Allow issuing options to rpc.nfsd
1563 (LP: #567491)
1564
1565 -- Bryce Harrington <bryce@ubuntu.com> Mon, 08 Aug 2011 16:37:26 -0700
1566
1567nfs-utils (1:1.2.4-1ubuntu1) oneiric; urgency=low
1568
1569 * Merge from Debian unstable (LP: #728586, LP: #789117), remaining
1570 changes:
1571 - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1572 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1573 debian/rules: drop nfs-common init script in favor of upstart jobs,
1574 and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
1575 init handling.
1576 - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1577 - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1578 in the postinst, this is redundant anyway and the nfs-common init script
1579 is gone now.
1580 - nfs-kernel-server.default: Add comment about how to disable nfs4.
1581 - debian/patches/multiarch-kerberos-paths: Search for kerberos libs
1582 in multiarch locations.
1583 - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1584 - ubuntu-fix-kernel-version-handling: avoid segfaults from short kernel
1585 version numbers.
1586
1587 -- Steve Langasek <steve.langasek@ubuntu.com> Sat, 23 Jul 2011 17:54:36 +0200
1588
602nfs-utils (1:1.2.4-1) unstable; urgency=low1589nfs-utils (1:1.2.4-1) unstable; urgency=low
6031590
604 * New upstream version1591 * New upstream version
@@ -686,6 +1673,93 @@ nfs-utils (1:1.2.2-5) unstable; urgency=low
6861673
687 -- Luk Claes <luk@debian.org> Wed, 16 Mar 2011 23:10:15 +01001674 -- Luk Claes <luk@debian.org> Wed, 16 Mar 2011 23:10:15 +0100
6881675
1676nfs-utils (1:1.2.2-4ubuntu8) oneiric; urgency=low
1677
1678 * debian/nfs-common.idmapd.upstart: don't use a script unnecessarily for
1679 our job when we can exec directly - making the job more resilient in
1680 the face of races with /usr being mounted. LP: #811823.
1681 * Drop rpc_pipefs.conf; this has gotten far more complicated than it
1682 should be, just do the mount in-line in each of the gssd and idmapd
1683 jobs.
1684
1685 -- Steve Langasek <steve.langasek@ubuntu.com> Sun, 17 Jul 2011 02:23:01 -0700
1686
1687nfs-utils (1:1.2.2-4ubuntu7) oneiric; urgency=low
1688
1689 [ Andy Whitcroft ]
1690 * ubuntu-fix-kernel-version-handling: avoid segfaults from short kernel
1691 version numbers. (LP: #796611)
1692
1693 -- Evan Dandrea <ev@ubuntu.com> Tue, 14 Jun 2011 17:13:14 +0100
1694
1695nfs-utils (1:1.2.2-4ubuntu6) oneiric; urgency=low
1696
1697 * nfs-kernel-server.init: Unmount nfsd fs when init script stops
1698 (LP: #251026)
1699
1700 -- Bryce Harrington <bryce@ubuntu.com> Mon, 06 Jun 2011 19:18:16 -0700
1701
1702nfs-utils (1:1.2.2-4ubuntu5) natty; urgency=low
1703
1704 * Search kerberos libs in multiarch locations.
1705
1706 -- Matthias Klose <doko@ubuntu.com> Fri, 01 Apr 2011 12:35:30 +0200
1707
1708nfs-utils (1:1.2.2-4ubuntu4) natty; urgency=low
1709
1710 * nvs-kernel-server.default: Add comment about how to disable nfs4.
1711 There are corner cases where the server providing nfsv4 as the default
1712 can confuse the client (117957, 680680) or even cause kernel problems
1713 (716811), so it is worthwhile to document how to fallback to nfs3 only.
1714
1715 -- Bryce Harrington <bryce@ubuntu.com> Mon, 14 Feb 2011 13:20:27 -0800
1716
1717nfs-utils (1:1.2.2-4ubuntu3) natty; urgency=low
1718
1719 * debian/nfs-common.statd.upstart: pass a new WAITER= variable
1720 to portmap-wait, so that multiple jobs can wait in parallel, fixing
1721 another subtle race condition; and bump the portmap dependency again for
1722 the necessary instance support.
1723 * also fix the grouping in the start condition, so that restarts work
1724 correctly when portmap is restarted.
1725 * debian/nfs-common.rpc_pipefs.upstart: instantiate this job separately for
1726 gssd and idmapd, so that the filesystem gets mounted and unmounted
1727 correctly even if both of gssd and idmapd aren't being run, or if one of
1728 the two tries to start before the filesystem is fully mounted. Though
1729 it may be simpler now to move this logic back into the gssd and idmapd
1730 jobs directly, leave that for a later date.
1731
1732 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 18 Jan 2011 17:45:45 -0800
1733
1734nfs-utils (1:1.2.2-4ubuntu2) natty; urgency=low
1735
1736 * debian/nfs-common.statd.upstart,
1737 debian/nfs-common.statd-mounting.upstart: refactor startup to wait for
1738 local-filesystems. (LP: #525154)
1739 * debian/control: depend on portmap version that sets ON_BOOT=y and
1740 has the portmap-wait job.
1741 * debian/rules: install new statd-mounting upstart job
1742
1743 -- Clint Byrum <clint@ubuntu.com> Wed, 05 Jan 2011 12:27:32 -0800
1744
1745nfs-utils (1:1.2.2-4ubuntu1) natty; urgency=low
1746
1747 * Merge from debian unstable (LP: #685860), remaining changes:
1748 - debian/nfs-common.{statd,gssd,idmapd,rpc_pipefs}.upstart,
1749 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1750 debian/rules: drop nfs-common init script in favor of upstart jobs, and
1751 build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart init
1752 handling.
1753 - debian/control:
1754 + depend on the upstart-using version of portmap, 6.0-10ubuntu1; and
1755 drop the alternative depends on rpcbind, which hasn't been converted.
1756 + depend on portmap 6.0-10ubuntu1.
1757 - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1758 in the postinst, this is redundant anyway and the nfs-common init script
1759 is gone now.
1760
1761 -- Lorenzo De Liso <blackz@ubuntu.com> Wed, 15 Dec 2010 21:42:55 +0100
1762
689nfs-utils (1:1.2.2-4) unstable; urgency=low1763nfs-utils (1:1.2.2-4) unstable; urgency=low
6901764
691 * mountd: fix path comparison for v4 crossmnt (Closes: #578317)1765 * mountd: fix path comparison for v4 crossmnt (Closes: #578317)
@@ -713,6 +1787,28 @@ nfs-utils (1:1.2.2-2) unstable; urgency=low
7131787
714 -- Anibal Monsalve Salazar <anibal@debian.org> Tue, 13 Jul 2010 15:20:17 +10001788 -- Anibal Monsalve Salazar <anibal@debian.org> Tue, 13 Jul 2010 15:20:17 +1000
7151789
1790nfs-utils (1:1.2.2-1ubuntu1) maverick; urgency=low
1791
1792 * Merge from Debian unstable, remaining changes:
1793 - debian/nfs-common.{statd,gssd,idmapd,rpc_pipefs}.upstart,
1794 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1795 debian/rules: drop nfs-common init script in favor of upstart jobs, and
1796 build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart init
1797 handling.
1798 - debian/control: depend on the upstart-using version of portmap,
1799 6.0-10ubuntu1; and drop the alternative depends on rpcbind, which
1800 hasn't been converted.
1801 - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1802 in the postinst, this is redundant anyway and the nfs-common init script
1803 is gone now.
1804 * Dropped changes, included in Debian:
1805 - debian/control: add ${misc:Depends} line for nfs-common, for the
1806 upstart deps
1807 - debian/nfs-kernel-server.init: updated check for presence of nfsd
1808 support
1809
1810 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 04 Jun 2010 09:55:28 +0000
1811
716nfs-utils (1:1.2.2-1) unstable; urgency=low1812nfs-utils (1:1.2.2-1) unstable; urgency=low
7171813
718 [ Anibal Monsalve Salazar ]1814 [ Anibal Monsalve Salazar ]
@@ -784,6 +1880,51 @@ nfs-utils (1:1.2.0-4.1) unstable; urgency=low
7841880
785 -- Ben Hutchings <ben@decadent.org.uk> Wed, 16 Dec 2009 22:14:01 +00001881 -- Ben Hutchings <ben@decadent.org.uk> Wed, 16 Dec 2009 22:14:01 +0000
7861882
1883nfs-utils (1:1.2.0-4ubuntu4) lucid; urgency=low
1884
1885 * debian/nfs-common.gssd.upstart:
1886 - fix the OPTIONS= match for the start condition (missing a leading '*')
1887 so that we actually match on nfs4 mounts
1888 - drop the 'script' for a straight exec of rpc.gssd; if /usr is a separate
1889 partition then nfs4 mounts might be attempted in parallel, and upstart
1890 gets mightily confused when this happens. LP: #545673
1891
1892 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 23 Mar 2010 22:26:07 -0700
1893
1894nfs-utils (1:1.2.0-4ubuntu3) lucid; urgency=low
1895
1896 * debian/nfs-common.*.upstart: start on new 'mounting' signal instead of
1897 obsolete 'mount' signal.
1898
1899 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 25 Feb 2010 06:41:46 -0800
1900
1901nfs-utils (1:1.2.0-4ubuntu2) lucid; urgency=low
1902
1903 * debian/nfs-kernel-server.init: 2.6.32 kernels no longer export the
1904 same symbols. Switch symbol check to nfsd_serv which has been present
1905 since 2005. LP: #493145.
1906
1907 -- Andy Whitcroft <apw@canonical.com> Mon, 07 Dec 2009 16:56:56 +0000
1908
1909nfs-utils (1:1.2.0-4ubuntu1) lucid; urgency=low
1910
1911 * Merge from Debian testing, remaining changes:
1912 - debian/nfs-common.{statd,gssd,idmapd,rpc_pipefs}.upstart,
1913 debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1914 debian/rules: drop nfs-common init script in favor of upstart jobs, and
1915 build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart init
1916 handling.
1917 - debian/control: depend on the upstart-using version of portmap,
1918 6.0-10ubuntu1; and drop the alternative depends on rpcbind, which
1919 hasn't been converted.
1920 - debian/control: add ${misc:Depends} line for nfs-common, for the
1921 upstart deps
1922 - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1923 in the postinst, this is redundant anyway and the nfs-common init script
1924 is gone now.
1925
1926 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 04 Dec 2009 18:37:48 -0800
1927
787nfs-utils (1:1.2.0-4) unstable; urgency=low1928nfs-utils (1:1.2.0-4) unstable; urgency=low
7881929
789 * Removing myself from uploaders.1930 * Removing myself from uploaders.
@@ -798,6 +1939,94 @@ nfs-utils (1:1.2.0-3) unstable; urgency=low
7981939
799 -- Steinar H. Gunderson <sesse@debian.org> Sun, 09 Aug 2009 12:47:00 +02001940 -- Steinar H. Gunderson <sesse@debian.org> Sun, 09 Aug 2009 12:47:00 +0200
8001941
1942nfs-utils (1:1.2.0-2ubuntu9) lucid; urgency=low
1943
1944 * debian/nfs-common.statd.upstart: check for a started portmap in a
1945 non-racy manner. LP: #484209.
1946
1947 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 17 Nov 2009 11:27:37 -0600
1948
1949nfs-utils (1:1.2.0-2ubuntu8) karmic; urgency=low
1950
1951 * debian/control: add missing ${misc:Depends} for nfs-common, else we don't
1952 get the dependency on upstart that we should have. LP: #456281.
1953
1954 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 20 Oct 2009 13:10:01 +0000
1955
1956nfs-utils (1:1.2.0-2ubuntu7) karmic; urgency=low
1957
1958 * debian/rules: now that the jobs will exit cleanly on their own when
1959 'start' is called but the job is a no-op, remove the --error-handler
1960 option to dh_installinit so that we don't accidentally ignore other
1961 kinds of errors that could point to real problems.
1962
1963 -- Steve Langasek <steve.langasek@ubuntu.com> Sun, 11 Oct 2009 08:51:39 +0000
1964
1965nfs-utils (1:1.2.0-2ubuntu6) karmic; urgency=low
1966
1967 * Drop the gssd upstart job's dependency on "local-filesystems"; at boot
1968 time this is always implied transitively by the dep on portmap, and using
1969 a combination of 'or' and 'and' operators in the dependency list seems
1970 to confuse upstart quite badly, causing kerberized mounts to hang at boot.
1971 LP: #447654.
1972
1973 -- Steve Langasek <steve.langasek@ubuntu.com> Sat, 10 Oct 2009 20:12:11 +0000
1974
1975nfs-utils (1:1.2.0-2ubuntu5) karmic; urgency=low
1976
1977 * Set upstart jobs to also start on mount attempt, in the event that
1978 mountall gets to them before the daemons are done starting. Really-fixes
1979 LP: #431248.
1980 * Call 'stop' in the pre-start scripts for all jobs when we want to prevent
1981 the job from starting; this lets upstart know that it's a clean stop,
1982 and avoids boot-time messages about service start failures
1983
1984 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 09 Oct 2009 19:17:34 +0000
1985
1986nfs-utils (1:1.2.0-2ubuntu4) karmic; urgency=low
1987
1988 * Mounting rpc_pipefs also requires the sunrpc module, so move this
1989 modprobe to the right upstart job.
1990
1991 -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 05 Oct 2009 22:04:28 -0700
1992
1993nfs-utils (1:1.2.0-2ubuntu3) karmic; urgency=low
1994
1995 * nfs-kernel-server: don't call invoke-rc.d nfs-common in the postinst,
1996 this is redundant anyway and the nfs-common init script is gone now.
1997 LP: #441855.
1998
1999 -- Steve Langasek <steve.langasek@ubuntu.com> Sat, 03 Oct 2009 23:07:09 -0700
2000
2001nfs-utils (1:1.2.0-2ubuntu2) karmic; urgency=low
2002
2003 * Configure gssd and idmapd upstart jobs to stop on runlevels 0 and 6; this
2004 is consistent with previous initscript-based behavior, and spares upstart
2005 trying to restart the jobs repeatedly when sendsigs runs.
2006 * When autodetecting gssd, handle the case of 'sec=krb5' being embedded in
2007 the middle of the options list in /etc/fstab. LP: #364861.
2008 * Fix transition idempotency error when stopping old nfs-common init
2009 script, in case the postinst fails to finish afterwards (e.g., failure to
2010 restart the daemons).
2011 * Fix statd upstart job to properly honor NEED_STATD=no and not get stuck
2012 respawning indefinitely.
2013 * Ignore failures to start the daemons on upgrade, since if they aren't
2014 needed we don't *want* them to start. LP: #441055.
2015 * Fix up the rpc_pipefs job, the wrong version of the file slipped into
2016 the previous upload.
2017
2018 -- Steve Langasek <steve.langasek@ubuntu.com> Sat, 03 Oct 2009 01:52:21 +0000
2019
2020nfs-utils (1:1.2.0-2ubuntu1) karmic; urgency=low
2021
2022 * Drop nfs-common init script in favor of new upstart jobs. LP: #431248.
2023 * Build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart init
2024 handling.
2025 * Depend the upstart-using version of portmap, 6.0-10ubuntu1; and drop the
2026 alternative depends on rpcbind, which hasn't been converted.
2027
2028 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 02 Oct 2009 19:23:19 +0000
2029
801nfs-utils (1:1.2.0-2) unstable; urgency=low2030nfs-utils (1:1.2.0-2) unstable; urgency=low
8022031
803 * Merge from Ubuntu2032 * Merge from Ubuntu
diff --git a/debian/control b/debian/control
index 5d82c99..650dbfa 100644
--- a/debian/control
+++ b/debian/control
@@ -1,9 +1,10 @@
1Source: nfs-utils1Source: nfs-utils
2Priority: optional2Priority: optional
3Section: net3Section: net
4Maintainer: Debian kernel team <debian-kernel@lists.debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
5Uploaders: Anibal Monsalve Salazar <anibal@debian.org>, Ben Hutchings <benh@debian.org>, Steve Langasek <vorlon@debian.org>, Salvatore Bonaccorso <carnil@debian.org>6Uploaders: Anibal Monsalve Salazar <anibal@debian.org>, Ben Hutchings <benh@debian.org>, Steve Langasek <vorlon@debian.org>, Salvatore Bonaccorso <carnil@debian.org>
6Build-Depends: debhelper-compat (= 13), libwrap0-dev, libevent-dev, libkrb5-dev, libblkid-dev, libkeyutils-dev, pkg-config, libldap2-dev, libcap-dev, libtirpc-dev, libdevmapper-dev, libmount-dev, libsqlite3-dev7Build-Depends: debhelper-compat (= 13), libwrap0-dev, libevent-dev, libkrb5-dev, libblkid-dev, libkeyutils-dev, pkg-config, libldap2-dev, libcap-dev, libtirpc-dev, libdevmapper-dev, libmount-dev, libsqlite3-dev, dh-apport
7Standards-Version: 4.6.08Standards-Version: 4.6.0
8Homepage: https://linux-nfs.org/9Homepage: https://linux-nfs.org/
9Vcs-Git: https://salsa.debian.org/kernel-team/nfs-utils.git10Vcs-Git: https://salsa.debian.org/kernel-team/nfs-utils.git
@@ -59,10 +60,20 @@ Architecture: any
59Multi-Arch: same60Multi-Arch: same
60Pre-Depends: ${misc:Pre-Depends}61Pre-Depends: ${misc:Pre-Depends}
61Depends: ${shlibs:Depends}, ${misc:Depends}62Depends: ${shlibs:Depends}, ${misc:Depends}
62Conflicts: libnfsidmap2, libnfsidmap-regex63Conflicts: libnfsidmap2
63Provides: libnfsidmap2, libnfsidmap-regex64Breaks: libnfsidmap2 (<< 0.25-7~)
64Breaks: libnfsidmap2 (<< 0.25-7~), libnfsidmap-regex65Replaces: libnfsidmap2 (<< 0.25-7~)
65Replaces: libnfsidmap2 (<< 0.25-7~), libnfsidmap-regex
66Description: NFS idmapping library66Description: NFS idmapping library
67 libnfsidmap provides functions to map between NFSv4 names (which are67 libnfsidmap provides functions to map between NFSv4 names (which are
68 of the form user@domain) and local uid's and gid's.68 of the form user@domain) and local uid's and gid's.
69
70Package: libnfsidmap-regex
71Section: libs
72Architecture: any
73Multi-Arch: same
74Pre-Depends: ${misc:Pre-Depends}
75Depends: ${shlibs:Depends}, ${misc:Depends}
76Description: Plugin to map NFSv4 names to and from ids via regex
77 The regex plugin parses NFSv4 user and groups names using regex to extract the
78 local user or group. NFSv4 names are created by adding constant strings before
79 and after the local user and group names.
diff --git a/debian/libnfsidmap-regex.install b/debian/libnfsidmap-regex.install
69new file mode 10064480new file mode 100644
index 0000000..555f60b
--- /dev/null
+++ b/debian/libnfsidmap-regex.install
@@ -0,0 +1 @@
1usr/lib/*/libnfsidmap/regex.so
diff --git a/debian/libnfsidmap1.docs b/debian/libnfsidmap1.docs
0new file mode 1006442new file mode 100644
index 0000000..747afb7
--- /dev/null
+++ b/debian/libnfsidmap1.docs
@@ -0,0 +1 @@
1debian/README.Ubuntu
diff --git a/debian/libnfsidmap1.install b/debian/libnfsidmap1.install
index 2573d9e..a64297a 100644
--- a/debian/libnfsidmap1.install
+++ b/debian/libnfsidmap1.install
@@ -1,3 +1,5 @@
1usr/lib/*/lib*.so.*1usr/lib/*/lib*.so.*
2usr/lib/*/libnfsidmap/*.so2usr/lib/*/libnfsidmap/nsswitch.so
3usr/lib/*/libnfsidmap/static.so
4usr/lib/*/libnfsidmap/umich_ldap.so
3usr/share/man/man5/idmapd.conf.55usr/share/man/man5/idmapd.conf.5
diff --git a/debian/nfs-common.dirs b/debian/nfs-common.dirs
index 50ecd73..82903c3 100644
--- a/debian/nfs-common.dirs
+++ b/debian/nfs-common.dirs
@@ -1,4 +1,5 @@
1etc/init.d1etc/init.d
2etc/nfs.conf.d
2sbin3sbin
3usr/sbin4usr/sbin
4var/lib/nfs5var/lib/nfs
diff --git a/debian/nfs-common.docs b/debian/nfs-common.docs
5new file mode 1006446new file mode 100644
index 0000000..747afb7
--- /dev/null
+++ b/debian/nfs-common.docs
@@ -0,0 +1 @@
1debian/README.Ubuntu
diff --git a/debian/nfs-common.postrm b/debian/nfs-common.postrm
index 839b315..299a1f0 100644
--- a/debian/nfs-common.postrm
+++ b/debian/nfs-common.postrm
@@ -16,6 +16,7 @@ case "$1" in
16 ucf --purge $FILE16 ucf --purge $FILE
17 fi17 fi
18 done18 done
19 rm -f /etc/nfs.conf.d/local.conf
1920
20 rm -f /var/lib/nfs/state \21 rm -f /var/lib/nfs/state \
21 /var/lib/nfs/sm/* \22 /var/lib/nfs/sm/* \
diff --git a/debian/not-installed b/debian/not-installed
22new file mode 10064423new file mode 100644
index 0000000..d970955
--- /dev/null
+++ b/debian/not-installed
@@ -0,0 +1,3 @@
1usr/lib/*/libnfsidmap/*.a
2usr/lib/*/libnfsidmap/*.la
3usr/lib/*/libnfsidmap.la
diff --git a/debian/patches/nfs-conf-manpage-missing-svcgssd-options.patch b/debian/patches/nfs-conf-manpage-missing-svcgssd-options.patch
0new file mode 1006444new file mode 100644
index 0000000..b57ad8c
--- /dev/null
+++ b/debian/patches/nfs-conf-manpage-missing-svcgssd-options.patch
@@ -0,0 +1,19 @@
1Description: add missing svcgssd long options to nfs.conf(5)
2Author: Andreas Hasenack <andreas@canonical.com>
3Forwarded: https://marc.info/?l=linux-nfs&m=165635622607689&w=4
4Last-Update: 2022-06-27
5
6--- a/systemd/nfs.conf.man
7+++ b/systemd/nfs.conf.man
8@@ -283,7 +283,10 @@
9 .TP
10 .B svcgssd
11 Recognized values:
12-.BR principal .
13+.BR principal ,
14+.BR verbosity ,
15+.BR rpc-verbosity ,
16+.BR idmap-verbosity .
17
18 See
19 .BR rpc.svcgssd (8)
diff --git a/debian/patches/series b/debian/patches/series
index 8f98ef6..155ed0e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,8 @@ multiarch-kerberos-paths.patch
4nfs-utils-fix-man-page-syntax-errors.patch4nfs-utils-fix-man-page-syntax-errors.patch
5tests-skip-test-if-dev-log-is-missing.patch5tests-skip-test-if-dev-log-is-missing.patch
6nfsidmap.man-fix-section-number.patch6nfsidmap.man-fix-section-number.patch
7ubuntu-idmapd-manpage-update-regex-other-package.patch
8svcgssd-fix-use-after-free.patch
9svcgssd-display-principal-if-set.patch
10svcgssd-document-missing-options.patch
11nfs-conf-manpage-missing-svcgssd-options.patch
diff --git a/debian/patches/svcgssd-display-principal-if-set.patch b/debian/patches/svcgssd-display-principal-if-set.patch
7new file mode 10064412new file mode 100644
index 0000000..a10edd8
--- /dev/null
+++ b/debian/patches/svcgssd-display-principal-if-set.patch
@@ -0,0 +1,37 @@
1From 284d249e0fe58443dafc96fa8be51a2cef4541a0 Mon Sep 17 00:00:00 2001
2From: Marcel Ritter <marcel@linux-ng.de>
3Date: Tue, 21 Jun 2022 09:21:36 -0400
4Subject: [PATCH] svcgssd: Display principal if set
5
6It's a little irritating to only see the template "<...>@<...>" if you
7set a specific principal name. So let's show it (if set).
8
9Signed-off-by: Steve Dickson <steved@redhat.com>
10---
11 utils/gssd/svcgssd.c | 6 +++---
12 1 file changed, 3 insertions(+), 3 deletions(-)
13
14Origin: upstream, http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=284d249e0fe58443dafc96fa8be51a2cef4541a0
15Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1977745
16Last-Update: 2022-06-27
17
18diff --git a/utils/gssd/svcgssd.c b/utils/gssd/svcgssd.c
19index a242b78..ce78d8f 100644
20--- a/utils/gssd/svcgssd.c
21+++ b/utils/gssd/svcgssd.c
22@@ -295,9 +295,9 @@ main(int argc, char *argv[])
23 (const gss_OID)GSS_C_NT_HOSTBASED_SERVICE);
24 if (status == FALSE) {
25 printerr(0, "unable to obtain root (machine) credentials\n");
26- printerr(0, "do you have a keytab entry for "
27- "nfs/<your.host>@<YOUR.REALM> in "
28- "/etc/krb5.keytab?\n");
29+ printerr(0, "do you have a keytab entry for %s in"
30+ "/etc/krb5.keytab?\n",
31+ principal ? principal : "nfs/<your.host>@<YOUR.REALM>");
32 exit(1);
33 }
34 } else {
35--
361.8.3.1
37
diff --git a/debian/patches/svcgssd-document-missing-options.patch b/debian/patches/svcgssd-document-missing-options.patch
0new file mode 10064438new file mode 100644
index 0000000..18cf721
--- /dev/null
+++ b/debian/patches/svcgssd-document-missing-options.patch
@@ -0,0 +1,44 @@
1From f541550358f136e9a6d1fd131e83d17e6269dae4 Mon Sep 17 00:00:00 2001
2From: Marcel Ritter <marcel@linux-ng.de>
3Date: Tue, 21 Jun 2022 09:23:22 -0400
4Subject: [PATCH] svcgssd: Add (undocumented) config options to man page
5
6There seem to be some undocumented options implemented.
7Why not mention them in the man page?
8
9Signed-off-by: Steve Dickson <steved@redhat.com>
10---
11 utils/gssd/svcgssd.man | 13 +++++++++++++
12 1 file changed, 13 insertions(+)
13
14Origin: upstream, http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=f541550358f136e9a6d1fd131e83d17e6269dae4
15Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1977745
16Last-Update: 2022-06-27
17
18diff --git a/utils/gssd/svcgssd.man b/utils/gssd/svcgssd.man
19index 15ef4c9..8771c03 100644
20--- a/utils/gssd/svcgssd.man
21+++ b/utils/gssd/svcgssd.man
22@@ -61,6 +61,19 @@ this is equivalent to the
23 option. If set to any other value, that is used like the
24 .B -p
25 option.
26+.TP
27+.B verbosity
28+Value which is equivalent to the number of
29+.BR -v .
30+.TP
31+.B rpc-verbosity
32+Value which is equivalent to the number of
33+.BR -r .
34+.TP
35+.B idmap-verbosity
36+Value which is equivalent to the number of
37+.BR -i .
38+
39
40 .SH SEE ALSO
41 .BR rpc.gssd(8),
42--
431.8.3.1
44
diff --git a/debian/patches/svcgssd-fix-use-after-free.patch b/debian/patches/svcgssd-fix-use-after-free.patch
0new file mode 10064445new file mode 100644
index 0000000..5a9b0a6
--- /dev/null
+++ b/debian/patches/svcgssd-fix-use-after-free.patch
@@ -0,0 +1,45 @@
1From 2eabb25d5a43e48e769a0db29956e9f5dc5b5913 Mon Sep 17 00:00:00 2001
2From: Marcel Ritter <marcel@linux-ng.de>
3Date: Tue, 21 Jun 2022 09:19:17 -0400
4Subject: [PATCH] svcgssd: Fix use-after-free bug (config variables)
5
6This patch fixes a bug when trying to set "principal" in /etc/nfs.conf.
7Memory gets freed by conf_cleanup() before being used - moving cleanup
8code resolves that.
9
10Signed-off-by: Steve Dickson <steved@redhat.com>
11---
12 utils/gssd/svcgssd.c | 6 +++---
13 1 file changed, 3 insertions(+), 3 deletions(-)
14
15Origin: upstream, http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=2eabb25d5a43e48e769a0db29956e9f5dc5b5913
16Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1977745
17Last-Update: 2022-06-27
18
19diff --git a/utils/gssd/svcgssd.c b/utils/gssd/svcgssd.c
20index 881207b..a242b78 100644
21--- a/utils/gssd/svcgssd.c
22+++ b/utils/gssd/svcgssd.c
23@@ -211,9 +211,6 @@ main(int argc, char *argv[])
24 rpc_verbosity = conf_get_num("svcgssd", "RPC-Verbosity", rpc_verbosity);
25 idmap_verbosity = conf_get_num("svcgssd", "IDMAP-Verbosity", idmap_verbosity);
26
27- /* We don't need the config anymore */
28- conf_cleanup();
29-
30 while ((opt = getopt(argc, argv, "fivrnp:")) != -1) {
31 switch (opt) {
32 case 'f':
33@@ -328,6 +325,9 @@ main(int argc, char *argv[])
34
35 daemon_ready();
36
37+ /* We don't need the config anymore */
38+ conf_cleanup();
39+
40 nfs4_init_name_mapping(NULL); /* XXX: should only do this once */
41
42 rc = event_base_dispatch(evbase);
43--
441.8.3.1
45
diff --git a/debian/patches/ubuntu-idmapd-manpage-update-regex-other-package.patch b/debian/patches/ubuntu-idmapd-manpage-update-regex-other-package.patch
0new file mode 10064446new file mode 100644
index 0000000..cf63722
--- /dev/null
+++ b/debian/patches/ubuntu-idmapd-manpage-update-regex-other-package.patch
@@ -0,0 +1,12 @@
1--- a/support/nfsidmap/idmapd.conf.5
2+++ b/support/nfsidmap/idmapd.conf.5
3@@ -158,6 +158,9 @@
4 .nf
5
6 .fi
7+.B NOTE:
8+In Ubuntu, the regex plugin is shipped in the libnfsidmap-regex package. If you want to use this plugin, please install that package.
9+
10 If the "regex" translation method is specified, the following
11 variables within the [REGEX] section are used to map between NFS4 names and local IDs.
12 .TP
diff --git a/debian/rules b/debian/rules
index 417b74e..50c34f2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,9 +3,12 @@
3#export DH_VERBOSE = 13#export DH_VERBOSE = 1
44
5DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)5DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
6export DEB_BUILD_MAINT_OPTIONS = hardening=+all
7DPKG_EXPORT_BUILDFLAGS = 1
8include /usr/share/dpkg/buildflags.mk
69
7%:10%:
8 dh $@11 dh $@ --with apport
912
10override_dh_auto_configure:13override_dh_auto_configure:
11 dh_auto_configure -- \14 dh_auto_configure -- \
@@ -34,3 +37,6 @@ override_dh_md5sums:
3437
35override_dh_missing:38override_dh_missing:
36 dh_missing --list-missing39 dh_missing --list-missing
40
41override_dh_apport:
42 dh_apport -pnfs-common
diff --git a/debian/source.apport b/debian/source.apport
37new file mode 10064443new file mode 100644
index 0000000..6ea9c65
--- /dev/null
+++ b/debian/source.apport
@@ -0,0 +1,32 @@
1#!/usr/bin/python3
2
3'''NFS Apport Interface
4
5Copyright (C) 2022 Canonical Ltd
6Author: Andreas Hasenack <andreas@canonical.com>
7
8This program is free software; you can redistribute it and/or modify it
9under the terms of the GNU General Public License as published by the
10Free Software Foundation; either version 2 of the License, or (at your
11option) any later version. See http://www.gnu.org/copyleft/gpl.html for
12the full text of the license.
13'''
14
15from apport.hookutils import (
16 attach_file_if_exists,
17 command_output,
18 recent_syslog,
19)
20from glob import glob
21import re
22
23def add_info(report, ui):
24 file_list = ["/etc/nfs.conf","/etc/default/nfs-common", "/etc/default/nfs-kernel-server"]
25 file_list.extend(glob("/etc/nfs.conf.d/*.conf"))
26 file_list.append("/etc/exports")
27 file_list.append("/etc/request-key.d/id_resolver.conf")
28 for f in file_list:
29 attach_file_if_exists(report, f)
30 report["SyslogNFS"] = recent_syslog(re.compile("(rpc\.(nfsd|gssd|svcgssd|statd|mountd|idmapd)|blkmapd|nfsdcld|nfsidmap)\["))
31 report["NFSMounts"] = command_output(["findmnt", "-n", "-t", "nfs"])
32 report["NFSv4Mounts"] = command_output(["findmnt", "-n", "-t", "nfs4"])
diff --git a/debian/tests/control b/debian/tests/control
index dea3f82..8232531 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -2,3 +2,14 @@ Tests: local-server-client
2Depends: nfs-kernel-server2Depends: nfs-kernel-server
3# we need machine isolation as we need to modprobe stuff3# we need machine isolation as we need to modprobe stuff
4Restrictions: needs-root, isolation-machine, breaks-testbed4Restrictions: needs-root, isolation-machine, breaks-testbed
5
6Tests: kerberos-mount
7Depends: nfs-kernel-server, krb5-kdc, krb5-admin-server, krb5-user, keyutils
8Restrictions: needs-root, isolation-machine, breaks-testbed
9
10Tests: v3-mount
11Depends: nfs-kernel-server
12# this one allow stderr because when mounting nfsv3, a systemd message
13# about statd being started shows up, and I rather not supress stderr
14# in the mount command
15Restrictions: needs-root, isolation-machine, breaks-testbed, allow-stderr
diff --git a/debian/tests/kerberos-mount b/debian/tests/kerberos-mount
5new file mode 10075516new file mode 100755
index 0000000..9ea2f52
--- /dev/null
+++ b/debian/tests/kerberos-mount
@@ -0,0 +1,38 @@
1#!/bin/sh
2
3set -e
4
5. debian/tests/util
6
7cleanup() {
8 umount /mnt || :
9}
10
11trap cleanup EXIT
12
13myhostname="nfs-server.dep8"
14myrealm="DEP8"
15hello="Hello from NFS server $$"
16
17adjust_hostname "${myhostname}"
18
19create_realm ${myrealm} ${myhostname}
20
21for p in "nfs/${myhostname}" "host/${myhostname}"; do
22 create_krb_svc_principal "${p}"
23 extract_principal_key_into_keytab "${p}"
24done
25
26# or else clients have to wait 90s by default
27nfsconf --set nfsd grace-time 10
28systemctl restart nfs-server.service nfs-client.target
29
30mkdir -p /storage
31echo "${hello}" > /storage/hello.txt
32
33echo "/storage *(sec=krb5p,rw,sync,no_subtree_check)" > /etc/exports
34exportfs -rav
35
36mount "${myhostname}":/storage /mnt
37findmnt -n -t nfs4 | grep -E "/storage.*vers=4.*sec=krb5p"
38grep "${hello}" /mnt/hello.txt
diff --git a/debian/tests/util b/debian/tests/util
0new file mode 10064439new file mode 100644
index 0000000..cd8c9e2
--- /dev/null
+++ b/debian/tests/util
@@ -0,0 +1,89 @@
1#!/bin/sh
2
3die() {
4 echo "ERROR"
5 echo "$@"
6 exit 1
7}
8
9adjust_hostname() {
10 local myhostname="$1"
11
12 echo "${myhostname}" > /etc/hostname
13 hostname "${myhostname}"
14 if ! grep -qE "${myhostname}" /etc/hosts; then
15 # just so it's resolvable
16 echo "127.0.1.10 ${myhostname}" >> /etc/hosts
17 fi
18}
19
20create_realm() {
21 local realm_name="$1"
22 local kerberos_server="$2"
23
24 # start fresh
25 rm -rf /var/lib/krb5kdc/*
26 rm -rf /etc/krb5kdc/*
27 rm -f /etc/krb5.keytab
28
29 # setup some defaults
30 cat > /etc/krb5kdc/kdc.conf <<EOF
31[kdcdefaults]
32 kdc_ports = 750,88
33[realms]
34 ${realm_name} = {
35 database_name = /var/lib/krb5kdc/principal
36 admin_keytab = FILE:/etc/krb5kdc/kadm5.keytab
37 acl_file = /etc/krb5kdc/kadm5.acl
38 key_stash_file = /etc/krb5kdc/stash
39 kdc_ports = 750,88
40 max_life = 10h 0m 0s
41 max_renewable_life = 7d 0h 0m 0s
42 master_key_type = des3-hmac-sha1
43 #supported_enctypes = aes256-cts:normal aes128-cts:normal
44 default_principal_flags = +preauth
45 }
46EOF
47
48 cat > /etc/krb5.conf <<EOF
49[libdefaults]
50 default_realm = ${realm_name}
51 kdc_timesync = 1
52 ccache_type = 4
53 forwardable = true
54 proxiable = true
55 fcc-mit-ticketflags = true
56[realms]
57 ${realm_name} = {
58 kdc = ${kerberos_server}
59 admin_server = ${kerberos_server}
60 }
61EOF
62 echo "# */admin *" > /etc/krb5kdc/kadm5.acl
63
64 # create the realm
65 kdb5_util create -s -P secretpassword
66
67 # restart services
68 systemctl restart krb5-kdc.service krb5-admin-server.service
69}
70
71create_krb_principal() {
72 local principal="$1"
73 local password="$2"
74
75 kadmin.local -q "addprinc -pw ${password} ${principal}" 2>/dev/null
76}
77
78create_krb_svc_principal() {
79 local principal="$1"
80
81 kadmin.local -q "addprinc -randkey ${principal}" 2>/dev/null
82}
83
84extract_principal_key_into_keytab() {
85 local principal="$1"
86
87 kadmin.local -q "ktadd ${principal}"
88}
89
diff --git a/debian/tests/v3-mount b/debian/tests/v3-mount
0new file mode 10075590new file mode 100755
index 0000000..7eb5e6b
--- /dev/null
+++ b/debian/tests/v3-mount
@@ -0,0 +1,34 @@
1#!/bin/sh
2
3set -e
4
5cleanup() {
6 umount /mnt || :
7}
8
9hello="Hello from NFS server $$"
10mkdir -p /storage
11echo "${hello}" > /storage/hello.txt
12
13echo "/storage *(sec=sys,rw,sync,no_subtree_check)" > /etc/exports
14exportfs -rav
15
16# stop statd if it's running, because we will check later if it
17# was started automatically for the NFSv3 mount as it should
18if pidof rpc.statd > /dev/null 2>&1; then
19 systemctl stop rpc-statd.service > /dev/null 2>&1 || :
20 pidof rpc.statd > /dev/null 2>&1 && {
21 echo "couldn't kill rpc.statd before the NFSv3 test"
22 exit 1
23 }
24fi
25
26mount localhost:/storage /mnt -o vers=3
27grep "${hello}" /mnt/hello.txt
28
29pidof rpc.statd > /dev/null 2>&1 || {
30 echo "rpc.statd isn't running after the NVSv3 mount, and it should..."
31 exit 1
32}
33
34findmnt -n -t nfs | grep -E "/storage.*vers=3.*sec=sys"

Subscribers

People subscribed via source and target branches