[libvirt] [RFC PATCHv2 3/5] smartcard: add XML support for <smartcard> device

Eric Blake eblake at redhat.com
Fri Jan 14 17:22:19 UTC 2011


On 01/14/2011 05:24 AM, Daniel P. Berrange wrote:
> On Thu, Jan 13, 2011 at 05:34:35PM -0700, Eric Blake wrote:
>> Assuming a hypervisor that supports multiple smartcard devices in the
>> guest, this would be a valid XML description:
> 
> This looks pretty reasonable, but is going to require additions
> to the security driver code. In the SetAllLabel method of the
> security drivers you'll need to iterate over all smartcards.

Good catch.  I'm working on that portion now.  I've gone ahead and
pushed 1 and 2, given that they were straight ack and were preliminary
patches useful even without smartcard support.

> 
>>
>> <devices>
>>   <smartcard mode='host'/>
> 
> I guess there is some /dev/smartcard device that needs to
> be accessed and thus labelled here ?

I'm not sure.  Alon, since -device ccid-card-emulated makes qemu use NSS
to access the host's smartcard, do we need to add any particular
permissions to a device file to allow qemu access to the host device
(and if so, is it /dev/smartcard or something else on the host)?

> ACK for the patch

Even though patch 3 is just docs, I'll hold off pushing this until I've
completed incorporating the security driver fixes as well.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110114/7f90b676/attachment-0001.sig>


More information about the libvir-list mailing list