Bug#411850: zaptel install on vserver: mknod : operation not permitted

Tzafrir Cohen tzafrir.cohen at xorcom.com
Wed Feb 21 12:28:00 UTC 2007


Package: zaptel
Version: 1:1.2.11.dfsg-1
Severity: important

*** Please type your report below this line ***
The installation of zaptel on a vserver gues fails with the error:

Setting up zaptel (1.2.11.dfsg-1) ...
mknod: `/dev/zap/ctl': Operation not permitted

On vserver mknod has to be expliciltly permitted to guests. The package
zaptel is needed e.g. for installing Asterisk even without a need of a
zaptel device.

The relevant part from the postinst script:

        if ! echo $DYNFS | grep -q devfsd || echo $DYNFS | grep -q udevd ; then
		mkdir -p /dev/zap
		rm -f /dev/zap/ctl

		# snip

		mknod /dev/zap/ctl c 196 0

		# snip

		N=1
		for N in `seq 250`; do
			rm -f /dev/zap/$N;
			mknod /dev/zap/$N c 196 $N;
			N=`expr $N + 1`
		done

That mknod is in itself a violation of policy section 10.6 (the package
has mknod-in-maintainer-script in a lintian overrides file). It is also
unneccesary on systems with either udev or devfs. 

Those rues also need changing, as device 250 should now become
/dev/zap/transcode . 

(and in case you wonder: the mixing of seq and shell arithemtics above
is funny, but happens to be harmless)


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-vserver-686
Locale: LANG=he_IL.UTF-8, LC_CTYPE=he_IL.UTF-8 (charmap=UTF-8)

Versions of packages zaptel depends on:
ii  fxload                    0.0.20020411-1 Firmware download to EZ-USB device
ii  libc6                     2.3.6.ds1-11   GNU C Library: Shared libraries
ii  libnewt0.52               0.52.2-9       Not Erik's Windowing Toolkit - tex
ii  libusb-0.1-4              2:0.1.12-2     userspace USB programming library
ii  procps                    1:3.2.7-3      /proc file system utilities

zaptel recommends no packages.

-- no debconf information
-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir




More information about the Pkg-voip-maintainers mailing list