shenkaige / seek-for-android

Automatically exported from code.google.com/p/seek-for-android
0 stars 0 forks source link

Why pcsc need 4755 permission? #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What's the problem?

What steps will reproduce the problem?
1. From pcsc_system_service_v098.patch, we found we need put "chmod 4755 
/system/bin/pcscd"
2. 4755 means it has setuid
3. Why pcsc need setuid? Is it safe?

Original issue reported on code.google.com by delisky...@gmail.com on 23 Jul 2012 at 8:07

GoogleCodeExporter commented 9 years ago
Correct, currently, PCSC needs root permissions and no, it's not safe. However, 
the current PCSC integration concept is not well designed, it's just a proof of 
concept. 

Once we get prio on this we would like to move the SmartCard API Service into 
an Android System Service and replace the libpcsclite.so that it communicates 
with SCPAI directly. Then we can get rid of the native daemon and the system 
service and be able to support GPAC for native applications as well.

Original comment by Daniel.A...@gi-de.com on 20 Aug 2012 at 8:35