Bug 555660 - cyberjack cardreader is not accessible
Summary: cyberjack cardreader is not accessible
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 11.3
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: All openSUSE 11.3
: P2 - High : Major with 10 votes (vote)
Target Milestone: ---
Assignee: Stanislav Brabec
QA Contact: E-mail List
URL:
Whiteboard: .
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-15 19:08 UTC by Wolfgang Rosenauer
Modified: 2016-04-15 10:31 UTC (History)
4 users (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Rosenauer 2009-11-15 19:08:05 UTC
As with every single new openSUSE distribution a cyberjack reader is not accessible with the included cyberjack drivers again :-(

Trying to use it with PC/SC shows up the following in /var/log/messages:

Nov 15 20:58:50 Hygiea pcscd: readerfactory.c:1050:RFInitializeReader() Open Port 200000 Failed (usb:0c4b/0300:libhal:/org/freedesktop/H
al/devices/usb_device_c4b_300_0970975811_if0)
Nov 15 20:58:50 Hygiea pcscd: readerfactory.c:233:RFAddReader() REINER SCT CyberJack pp_a (0970975811) init failed.
Nov 15 20:58:50 Hygiea pcscd: readerfactory.c:1050:RFInitializeReader() Open Port 200000 Failed (usb:0c4b/0300:libusb:003:002)
Nov 15 20:58:50 Hygiea pcscd: readerfactory.c:233:RFAddReader() REINER SCT CyberJack pp_a (0970975811) init failed.
Nov 15 20:58:50 Hygiea pcscd: hotplug_libhal.c:468:HPAddDevice() Failed adding USB device: usb_device_c4b_300_0970975811_if0
Nov 15 20:58:50 Hygiea kernel: [   35.656558] usb 3-1: usbfs: interface 0 claimed by usbfs while 'pcscd' sets config #1
q

And accessing it directly using the ctapi interface is not possible because of permission issues:
wolfi@Hygiea:~> ll /dev/bus/usb/003/002
crw-rw-r-- 1 root root 189, 257 15. Nov 20:58 /dev/bus/usb/003/002
wolfi@Hygiea:~> getfacl /dev/bus/usb/003/002
getfacl: Entferne führende '/' von absoluten Pfadnamen
# file: dev/bus/usb/003/002
# owner: root
# group: root
user::rw-
group::rw-
other::r--
Comment 1 Stefan Stäglich 2009-11-30 17:50:57 UTC
I have the same probleme. I use moneyplex 2007 and I have only access to the chip-drive (Cyberjack Secoder) if I set manualy the permissions of the drive-file to 666 (chmod o+w).
Comment 2 Wolfgang Rosenauer 2009-12-02 10:35:33 UTC
Ok, I've tried to follow what changed again but failed.
I know that the HAL fdi which specified that smartcard readers should get acl management does not exist anymore.
There is some acl handling in /lib/udev/rules.d/70-acl.rules which also has some reference to smartcard readers but I have absolutely no idea how to debug or fix that with my limited udev/hal/whatever knowledge.
Comment 3 Wolfgang Rosenauer 2009-12-21 20:36:59 UTC
Fixed in security:chipcard (aka devel project):

-------------------------------------------------------------------
Mon Dec 21 21:00:23 CET 2009 - wr@rosenauer.org

- Updated to version 3.3.3
  * compatible with recent libusb
- Added udev rules for ACL access (bnc#555660)
- Removed support for 10.3 and older


Works for me on 11.2. Not sure if this deserves an official update (for me it certainly would).
Stanislav, if you have fancy ideas to create the udev file automatically feel free ;-)
Comment 4 Stefan Stäglich 2009-12-22 08:34:36 UTC
I've found out yesterday that Packman has also packages with the cyberjack-driver. So I've tested that packages. I've installed the packages ctapi-cyberjack, ctapi-cyberjack and libctapi-cyberjack. A group called cyberjack has been automatically created. I've added my user to that group and after a relogin all works.
Comment 5 Wolfgang Rosenauer 2009-12-22 08:43:20 UTC
That is basically what the upstream package does as well.
It might be easy to implement but having to add a user to a group is considered suboptimal as well. So we went for the "automatic" solution years ago but it's fragile and changing with every openSUSE release. Anyway it's fixed now and every user which is logged in to the local machine can access the cardreader and not only users which are manually added to the group.
Comment 6 Wolfgang Rosenauer 2009-12-22 08:45:21 UTC
@maintenance, is a completely incompatible hardware driver considered to be updated to a working version or do we expect people to find security:chipcard or using third party packages as replacement?
Comment 7 Christian Dengler 2009-12-22 13:02:30 UTC
+1 (for an update)
Comment 8 Magnus Boman 2009-12-22 20:38:09 UTC
Since it seems the shipping version does not work, +1 for updating
Comment 9 Marcus Meissner 2009-12-23 09:07:02 UTC
The UDEV rules for ACL access are the right way to solve this.

I had hoped the HAL/UDEV maintainers would have fixed all packages, but they did not care about them.

No special group creation please.

+1 for update.
Comment 10 Stanislav Brabec 2009-12-23 17:05:17 UTC
Well, incomplete migration from HAL to udev is a good reason to update all affected devices. Cyberjack is the worst affected - banking tools use direct access to the USB device, which requires correct privileges.

I have encountered just another problem: YaST should automatically pick correct driver packages when the reader is connected. It seems to not work as well.

udev rules should follow the same privileges as HAL rules did, i. e. one common UID+GID "scard" for all types of smart card readers.
Comment 11 Marcus Meissner 2009-12-23 17:31:55 UTC
are there any changes in the version upgrade that could break things?

in theory we would just use the needed fixes if possible, but if the version upgrade is safe then I would be fine with it.


an sbrabec, NEVER remove NEEDINFO maintenance@opensuse.org, it drops the bug from our radar. I will asign a SWAMPID, please submit the fixed pasckages and tell me the package name
Comment 12 Swamp Workflow Management 2009-12-23 17:32:08 UTC
The SWAMPID for this issue is 29837.
Please submit the patch and patchinfo file using this ID.
(https://swamp.suse.de/webswamp/wf/29837)
Comment 13 Wolfgang Rosenauer 2009-12-23 19:56:33 UTC
(In reply to comment #11)
> are there any changes in the version upgrade that could break things?

No. Nothing outside of the driver is affected and the shipped version is not compatible with the libusb version in 11.2 so 0% success rate w/o update anyway.

(In reply to comment #10)
> udev rules should follow the same privileges as HAL rules did, i. e. one common
> UID+GID "scard" for all types of smart card readers.

udev already has a rule for ID_SMARTCARD_READERS. There just is/was no mapping of any device to ID_SMARTCARD_READERS so the new package adds a new udev rules file which sets ID_SMARTCARD_READERS for every known cyberjack device. I hope it's ok that way but at least it works. Someone should review though.
Comment 14 Stanislav Brabec 2009-12-28 15:50:37 UTC
To Wolfgang:

Please report the comment 13 issue 1 as a separate bug report and assign it to me. It seems to be a libusb-compat issue that should be fixed even if new version migrates to libusb1. See bug 559697 that may be related.

Looking at the security:chipcard update, I see that you disabled support for <= 10.3 (e. g. SLE10). Does it have any special reason? Other packages in this project still support SLE10.
Comment 15 Wolfgang Rosenauer 2010-01-05 23:29:10 UTC
(In reply to comment #14)
> Looking at the security:chipcard update, I see that you disabled support for <=
> 10.3 (e. g. SLE10). Does it have any special reason? Other packages in this
> project still support SLE10.

Hmm, no special reason but all the special handling for every single openSUSE/SUSE distribution was quite confusing and I've thought the current package wouldn't be of much interest for SLES10.
Comment 16 Stanislav Brabec 2010-01-06 15:38:37 UTC
I just created a new testing package in security:chipcard. It is based on your update and returns SLE10 support.

It introduces one important change: Direct use of libusb1 instead of use of libusb1 through libusb-compat layer in openSUSE 11.2.

Please test. If it works, it could be a candidate for openSUSE 11.2 Online Update.
Comment 17 Stanislav Brabec 2010-01-15 13:23:38 UTC
Ping.

Is there any owner of this reader who can perform testing of update from http://download.opensuse.org/repositories/security:/chipcard/openSUSE_11.2/
Comment 18 Christian Dengler 2010-02-08 13:05:00 UTC
What is the status here? Can you submit the fixed sources against the update-test repo and give me a package list? Then I can write the patchinfo.
Comment 19 Stanislav Brabec 2010-02-11 22:23:41 UTC
Status: I don't have the card reader available. That is why I cannot test the package in comment #17. But I can submit it to Update:Test.
Comment 20 Christian Dengler 2010-03-10 14:38:45 UTC
Yes, submit it against update:test ... give it a try ;-)
Comment 21 Forgotten User kBMf6VxSAI 2010-03-19 14:36:45 UTC
I tested it, and couldn't get it to work in moneyplex2009.
Two things:
1. Please update to latest version 3.3.5
2. Add the cyberjack testing tool (see packman package)
Comment 22 Wolfgang Rosenauer 2010-03-19 18:53:28 UTC
Just for the record. I'm using it with moneyplex almost every day so I think the above is a support issue and no bug.
I won't comment on the version upgrade though.
Comment 23 Christian Dengler 2010-04-06 10:57:20 UTC
The issue/update is open for a long time. :-(

Is there anything that we can push as a maintenance update into the test channel or is it better to wait and cancle the update here?
Comment 24 Wolfgang Rosenauer 2010-04-06 11:25:21 UTC
As I wrote a few times the package in security:chipcard works for me basically. Meanwhile I saw issues which might be related to the 3.3.3 version and today I've updated the version in security:chipcard to most recent 3.3.5. I'll test it as soon as possible in my environment for 11.2 and I think we should get it out if it works. Everyone following this bug might check the recent version once it is available in OBS and report issues here.
Leaving NEEDINFO until I can provide more testing feedback.
Comment 25 Wolfgang Rosenauer 2010-04-07 11:15:08 UTC
I've tested the new version yesterday with my cyberjack pinpad reader using cjgeldkarte and moneyplex and both worked for me well.
I've just submitreq the version to Factory and propose to update to it for 11.2 as well.
Comment 26 Christian Dengler 2010-04-07 12:37:26 UTC
(In reply to comment #25)
> I've tested the new version yesterday with my cyberjack pinpad reader using
> cjgeldkarte and moneyplex and both worked for me well.
nice :-)
> I've just submitreq the version to Factory and propose to update to it for 11.2
> as well.
Yes. Be so kind and also submit it to 11.2-update.

TIA
Comment 27 Forgotten User kBMf6VxSAI 2010-04-07 13:32:28 UTC
version 3.3.5-31.1 in obs:security:chipcard works under openSUSE 11.2 64bit with ReinerSCT cyberjack secoder. Tested commandline output "cyberjack" OK and moneyplex (using /usr/lib/readers/libctapi-cyberjack.so). 
Packages installed: ctapi-cyberjack and ctapi-cyberjack-32bit
Comment 28 Wolfgang Rosenauer 2010-04-07 16:27:43 UTC
created request id 37259 for openSUSE:11.2:Update:Test
Comment 29 Christian Dengler 2010-04-12 14:00:39 UTC
Wolfgang, thanks! :-)

I added a patchinfo. Update should be available within the next hours in the update channel for testing.
Comment 30 Swamp Workflow Management 2010-04-19 12:29:58 UTC
Update released for: ctapi-cyberjack, ctapi-cyberjack-debuginfo, pcsc-cyberjack, pcsc-cyberjack-debuginfo, pcsc-cyberjack-debugsource
Products:
openSUSE 11.2 (debug, i586, x86_64)
Comment 31 Forgotten User kBMf6VxSAI 2010-07-21 06:59:31 UTC
again, with the newly released openSUSE 11.3 the cardreader cannot be used from moneyplex. Cardreader information shows everything ok, except for group which shouldn't be the problem on opensuse as this is handled differently.
There is no library file/link found moneyplex is accepting in /usr/lib64/ nor in ./readers/ or ./cyberjack/ as there has been on 11.2
Comment 32 Marcus Meissner 2010-07-21 07:52:30 UTC
deeny, you hijacked this unfinished bugreport.


please try avoid doing so in the future.

reassign back to sbrabec
Comment 33 Forgotten User kBMf6VxSAI 2010-07-21 08:11:50 UTC
Sorry Marcus, won't happen again.
Btw. Moneyplex seemed to require the 32bit driver package (on the 64bit system) in order to work properly. I will add this note on the wiki, but maybe it could be added somewhere else too, like the package description.
Comment 34 Stanislav Brabec 2011-07-11 14:38:32 UTC
I guess that this bug is fixed, and the later breakage was fixed as well as bug 681130.

I don't have the needed hardware, so I cannot verify it. If it is not true, feel free to reopen.
Comment 35 Bernhard Wiedemann 2016-04-15 10:31:17 UTC
This is an autogenerated message for OBS integration:
This bug (555660) was mentioned in
https://build.opensuse.org/request/show/37259 11.2:Test / pcsc-cyberjack