Source: nfs-utils
Version: 1:2.6.2-4
Severity: normal
X-Debbugs-Cc: mark.gri...@ixsystems.com

Dear Maintainer,

While testing upgrades I found the nfsconvert.py script would fail when
the '-s' or '--syslog' option was included with RPCNFSDOPTS.

Here is the patch file with what I believe are the necessary changes:

--- nfsconvert.py       2023-04-27 15:46:24.628347999 -0700
+++ /usr/share/nfs-common/nfsconvert.py 2023-01-11 12:41:40.000000000 -0800
@@ -15,7 +15,7 @@
 # options for nfsd found in RPCNFSDOPTS
 OPTS_NFSD = 'dH:p:rR:N:V:stTuUG:L:'
 LONG_NFSD = ['debug', 'host=', 'port=', 'rdma=', 'nfs-version=', 
'no-nfs-version=',
-             'syslog', 'tcp', 'no-tcp', 'udp', 'no-udp', 'grace-time=', 
'lease-time=']
+             'tcp', 'no-tcp', 'udp', 'no-udp', 'grace-time=', 'lease-time=']
 CONV_NFSD = {'-d': (CONF_NFS, 'nfsd', 'debug', 'all'),
              '-H': (CONF_NFS, 'nfsd', 'host', ','),
              '-p': (CONF_NFS, 'nfsd', 'port', '$1'),
@@ -23,7 +23,6 @@
              '-R': (CONF_NFS, 'nfsd', 'rdma', '$1'),
              '-N': (CONF_NFS, 'nfsd', 'vers$1', 'n'),
              '-V': (CONF_NFS, 'nfsd', 'vers$1', 'y'),
-             '-s': (CONF_NFS, 'nfsd', 'syslog', '1'),
              '-t': (CONF_NFS, 'nfsd', 'tcp', '1'),
              '-T': (CONF_NFS, 'nfsd', 'tcp', '0'),
              '-u': (CONF_NFS, 'nfsd', 'udp', '1'),
@@ -37,7 +36,6 @@
              '--rdma': (CONF_NFS, 'nfsd', 'rdma', '$1'),
              '--no-nfs-version': (CONF_NFS, 'nfsd', 'vers$1', 'n'),
              '--nfs-version': (CONF_NFS, 'nfsd', 'vers$1', 'y'),
-             '--syslog': (CONF_NFS, 'nfsd', 'syslog', '1'),
              '--tcp': (CONF_NFS, 'nfsd', 'tcp', '1'),
              '--no-tcp': (CONF_NFS, 'nfsd', 'tcp', '0'),
              '--udp': (CONF_NFS, 'nfsd', 'udp', '1'),

I have not done any additional testing.


-- System Information:
Debian Release: 12.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-7-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nfs-common depends on:
ii  adduser                    3.132
ii  init-system-helpers        1.65.2
ii  keyutils                   1.6.3-2
ii  libc6                      2.36-9
ii  libcap2                    1:2.66-3
ii  libcom-err2                1.47.0-2
ii  libdevmapper1.02.1         2:1.02.185-2
ii  libevent-core-2.1-7        2.1.12-stable-8
ii  libgssapi-krb5-2           1.20.1-1+b1
ii  libkeyutils1               1.6.3-2
ii  libkrb5-3                  1.20.1-1+b1
ii  libmount1                  2.38.1-5+b1
ii  libnfsidmap1               1:2.6.2-4
ii  libtirpc3                  1.3.3+ds-1
ii  libwrap0                   7.6.q-32
ii  python3                    3.11.2-1+b1
ii  rpcbind                    1.2.6-6+b1
ii  sysvinit-utils [lsb-base]  3.06-4
ii  ucf                        3.0043+nmu1

Versions of packages nfs-common suggests:
pn  open-iscsi  <none>
pn  watchdog    <none>

Versions of packages nfs-kernel-server depends on:
ii  keyutils                   1.6.3-2
ii  libblkid1                  2.38.1-5+b1
ii  libc6                      2.36-9
ii  libcap2                    1:2.66-3
ii  libevent-core-2.1-7        2.1.12-stable-8
ii  libsqlite3-0               3.40.1-2
ii  libtirpc3                  1.3.3+ds-1
ii  libuuid1                   2.38.1-5+b1
ii  libwrap0                   7.6.q-32
ii  netbase                    6.4
ii  nfs-common                 1:2.6.2-4
ii  sysvinit-utils [lsb-base]  3.06-4
ii  ucf                        3.0043+nmu1

Versions of packages nfs-kernel-server recommends:
ii  python3       3.11.2-1+b1
ii  python3-yaml  6.0-3+b2

Versions of packages nfs-kernel-server suggests:
ii  procps  2:4.0.2-3

Reply via email to