[Pcsclite-cvs-commit] r7050 - trunk/PCSC/src

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Thu Dec 4 09:11:26 UTC 2014


Author: rousseau
Date: 2014-12-04 09:11:26 +0000 (Thu, 04 Dec 2014)
New Revision: 7050

Modified:
   trunk/PCSC/src/auth.c
Log:
Allow to use pcscd in a remote session

" Current implementation of polkit support disallows auth by 
challenge/response, effectively turning "auth_admin" present in the 
default policy to "no".

Attached patch makes possible to use polkit challenge/response agent to 
be authorized.

It makes possible to use pcscd in a remote session (providing admin 
password to the agent).

Possible problem: If the authorization agent is present and active, 
polkit_authority_check_authorization_sync() could take a long time (the 
time of users' response). If the next request comes in the same time, it 
is postponed until the previous one is handled. (Actions done by root 
are not postponed.) "

Thanks to Stanislav Brabec for the patch
http://lists.alioth.debian.org/pipermail/pcsclite-muscle/Week-of-Mon-20141201/000247.html


Modified: trunk/PCSC/src/auth.c
===================================================================
--- trunk/PCSC/src/auth.c	2014-12-04 09:09:40 UTC (rev 7049)
+++ trunk/PCSC/src/auth.c	2014-12-04 09:11:26 UTC (rev 7050)
@@ -108,7 +108,7 @@
 
 	result = polkit_authority_check_authorization_sync(authority, subject,
 		action_name, details,
-		POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE,
+		POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION,
 		NULL,
 		&error);
 




More information about the Pcsclite-cvs-commit mailing list