[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#596767: nfs-kernel-server does not check the ucf registry for conflicting package, registrations.

Package: nfs-kernel-server
Version: 1:1.1.2-6lenny2
Severity: important

        In the maintaner scripts included in nfs-kernel-server ucf is
used to detect whether the configfiles
managed by the scripts have been changed via a local edit. However the
postinst makes no inquiry against ucf
regarding whether another package has registered itself with any of the
files managed by nfs-kernel-server's
scripts. As such if another package ships for instance /etc/exports AND
also registers it's copy of the configfile
with ucf then subsequent calls to the "upgrade" section of
nfs-kernel-server's postinst script will result in
nfs-nerkel-server's default version of the configfile clobbering the
local copy even though ti is was
properly registered with ucf as belonging to the other package.

        To reproduce this behavior simply simulate another package's
manipulation and registration of one of
the configfiles like:

        $sudo cp /etc/exports /tmp/exports
        $sudo echo "#This is an innocuous edit" >>/tmp/exports
        $sudo ucf /tmp/exports /etc/exports
        $sudo ucfr totally-different-package /etc/exports

then reinstall nfs-kernel-server
        $sudo apt-get install --reinstall nfs-kernel-server

check /etc/exports and you'll find that your "innocuous edit" has is no
longer present and ucf never
initiated a threeway merge during the postinst/config stage of the

-- System Information:
Debian Release: 5.0.5
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages nfs-kernel-server depends on:
ii  libblkid1       1.41.3-1                 block device id library
ii  libc6           2.7-18lenny4             GNU C Library: Shared libraries
ii  libcomerr2      1.41.3-1                 common error description
ii  libgssglue1     0.1-2                    mechanism-switch gssapi library
ii  libkrb53        1.6.dfsg.4~beta1-5lenny4 MIT Kerberos runtime libraries
ii  libnfsidmap2    0.20-1                   An nfs idmapping library
ii  librpcsecgss3   0.18-1                   allows secure rpc
communication us
ii  libwrap0        7.6.q-16                 Wietse Venema's TCP
wrappers libra
ii  lsb-base        3.2-20                   Linux Standard Base 3.2
init scrip
ii  nfs-common      1:1.1.2-6lenny2          NFS support files common to
ii  ucf             3.0016                   Update Configuration File:

nfs-kernel-server recommends no packages.

nfs-kernel-server suggests no packages.

-- no debconf information

Reply to: