cryptopensc support for usb readers broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup |
New
|
Undecided
|
Unassigned |
Bug Description
1. The cryptopensc hook misses to copy over some files to initramfs. It is probably due to the fact that it blindly copies /usr/lib/pcsc, missing some library dependencies and a file symlinked there.
In case of libccid the hook at the end of report adds the needed files as a workaround.
2. Also stopping the pcsc daemon does not work (for a long time, probably since maverick):
- it tries to use start-stop-daemon, which is not in the initramfs
- it looks at /sbin for pcscd and it is now in /usr/sbin
As a workaround, the init script at the end of the report works
3. I'm not sure of this/etc/
---------------- hook /etc/initramfs-
#!/bin/sh
set -e
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/
# Hooks for loading smartcard reading software into the initramfs
copy_exec /lib/libpcsclit
copy_exec /lib/x86_
copy_exec /lib/x86_
copy_exec /etc/libccid_
-------
#!/bin/sh
set -e
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
. /scripts/functions
# Hook for stopping smartcard reading software
if [ ! -e /usr/sbin/pcscd ]; then
echo "no pcscd"
exit 0
fi
# Start pcscd daemon nomrally. If it was started in foregound, chances are
# it'll harmlessly complain about missing /var/run/pcscd* files due to the root
# filessytem being remounted.
kill -9 `ps ax |grep pcsc|grep -v grep|awk '{print $1}'`