Package: vlock
Version: 2.0-1
Severity: important

Hello,

it seems that even if the user is in the vlock group (as suggested in
NEWS.Debian and in upstream SECURITY), options -s and -n don't work:
=====
[EMAIL PROTECTED]:~$ groups
luca adm disk dialout cdrom floppy audio src video plugdev staff fuse vlock
[EMAIL PROTECTED]:~$ vlock -a -s
vlock-nosysrq: could not open '/proc/sys/kernel/sysrq': Permission denied
[EMAIL PROTECTED]:~$ vlock -n
vlock-new: cannot open virtual console: Permission denied
[EMAIL PROTECTED]:~$
=====

The problem is that vlock.postinst is not setting the correct
group/mode during upgrades.  This cause also the failure of package
de-installation (thus severity important):
=====
gismo:~# dpkg -s vlock | grep Status
Status: purge ok not-installed
gismo:~# apt-cache policy vlock
vlock:
  Installed: (none)
  Candidate: 2.0-1
  Version table:
     2.0-1 0
        990 http://ftp.ch.debian.org sid/main Packages
     2.0~rc2-1 0
          1 http://ftp.ch.debian.org experimental/main Packages
     1.3-10 0
        500 http://ftp.ch.debian.org testing/main Packages
gismo:~# apt-get install vlock=1.3-10
[...]
Setting up vlock (1.3-10) ...
gismo:~# ls -l /usr/sbin/vlock-*
ls: /usr/sbin/vlock-*: No such file or directory

gismo:~# apt-get install vlock
[...]
Setting up vlock (2.0-1) ...

gismo:~# ls -l /usr/sbin/vlock-*
-rwxr-xr-x 1 root root 6656 2007-08-13 20:06 /usr/sbin/vlock-all
-rwxr-xr-x 1 root root 7328 2007-08-13 20:06 /usr/sbin/vlock-current
-rwxr-xr-x 1 root root 6896 2007-08-13 20:06 /usr/sbin/vlock-new
-rwxr-xr-x 1 root root 6928 2007-08-13 20:06 /usr/sbin/vlock-nosysrq

gismo:~# dpkg-statoverride --list | grep vlock

gismo:~# dpkg -P vlock
(Reading database ... 90132 files and directories currently installed.)
Removing vlock ...
Purging configuration files for vlock ...
No override present.
dpkg: error processing vlock (--purge):
 subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
 vlock
gismo:~#
=====

Manually setting group/mode/overrides as in vlock.postinst solved the
issue.

BTW, since vlock.postinst calls dpkg-statoverride with the --update
option, you don't need to manually set the group/mode,
dpkg-statoverride will do it.

Thx, bye,
Gismo / Luca

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vlock depends on:
ii  libc6                         2.6.1-1    GNU C Library: Shared libraries
ii  libpam-modules                0.79-4     Pluggable Authentication Modules f
ii  libpam0g                      0.79-4     Pluggable Authentication Modules l

vlock recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to